drbrain avatar drbrain committed 8ae156d

Removed some warnings.

Comments (0)

Files changed (2)

 	flex --fast -o $@ $<
 
 # make sure the parser/lexer ask to build their c files
+$(BUILDDIR)/parser.o: CFLAGS += -Wno-unused
 $(call tobuild, parser.o): $(BUILDDIR)/parser.c
+$(BUILDDIR)/lexer.o: CFLAGS += -Wno-unused
 $(call tobuild, lexer.o): $(BUILDDIR)/lexer.c
 endif
 endif
 static ASTNode * create_trinary(ASTNode *logical, ASTNode *left, ASTNode *right);
 static LinkedList * create_param_list(ASTNode *param);
 static LinkedList * expand_param_list(LinkedList *list, ASTNode *param);
-static LinkedList * create_param_decl_list(char *param);
-static LinkedList * expand_param_decl_list(LinkedList *list, char *param);
+//static LinkedList * create_param_decl_list(char *param);
+//static LinkedList * expand_param_decl_list(LinkedList *list, char *param);
 static LinkedList * expand_assignment_list(LinkedList *list, AssignmentNode *param);
 static LinkedList * create_assignment_list(AssignmentNode *param);
 static ASTNode * create_for(char *i, ASTNode *var, ASTNode *minus, char *ret, LinkedList *body);
 static AssignmentNode * create_assignment(char *left, ASTNode *right);
-static FunctionDecl * create_function_decl(char *name, LinkedList *params, ASTNode *body);
+//static FunctionDecl * create_function_decl(char *name, LinkedList *params, ASTNode *body);
 
 %}
 
 	return list;
 }
 
-static LinkedList * expand_param_decl_list(LinkedList *list, char *param)
+/*static LinkedList * expand_param_decl_list(LinkedList *list, char *param)
 {
 	LLAdd(list, param);
 	return list;
-}
+}*/
 
-static LinkedList * create_param_decl_list(char *param)
+/*static LinkedList * create_param_decl_list(char *param)
 {
 	LinkedList *list = LLAlloc();
 	expand_param_decl_list(list, param);
 	return list;
-}
+}*/
 
 static LinkedList * expand_assignment_list(LinkedList *list, AssignmentNode *param)
 {
 	return node;
 }
 
-static FunctionDecl * create_function_decl(char *name, LinkedList *params, ASTNode *body)
+/*static FunctionDecl * create_function_decl(char *name, LinkedList *params, ASTNode *body)
 {
 	FunctionDecl *func_decl = amalloc(sizeof(FunctionDecl));
 	func_decl->name = name;
 	func_decl->params = params;
 	func_decl->body = body;
 	return func_decl;
-}
+}*/
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.