]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - BSDmakefile
Don't allocate globals for constants that aren't read
[xonotic/gmqcc.git] / BSDmakefile
index 89fe4f82cecd21ab6baaefca5353ff9190547d37..44a742a138d7d9f524d718e53c5a7590fdf11b35 100644 (file)
@@ -11,8 +11,6 @@ GITINFO  :=
     GITINFO != git describe --always
 .endif
 
-CFLAGS   +=  -Wall -Wextra -Werror -Wstrict-aliasing
-
 .if $(CC) == clang
     CFLAGS +=   -Weverything\
                 -Wno-padded\
@@ -22,6 +20,9 @@ CFLAGS   +=  -Wall -Wextra -Werror -Wstrict-aliasing
                 -Wno-float-equal\
                 -Wno-unknown-warning-option\
                 -Wno-cast-align\
+                -Wno-assign-enum\
+                -Wno-empty-body\
+                -Wno-date-time\
                 -pedantic-errors
 .else
 .    if $(CC) != g++
@@ -111,9 +112,11 @@ ast.o: gmqcc.h opts.def ast.h ir.h parser.h lexer.h
 code.o: gmqcc.h opts.def
 conout.o: gmqcc.h opts.def
 correct.o: gmqcc.h opts.def
+exec.o: gmqcc.h opts.def
 fold.o: ast.h ir.h gmqcc.h opts.def parser.h lexer.h
 fs.o: gmqcc.h opts.def platform.h
 ftepp.o: gmqcc.h opts.def lexer.h
+hash.o: gmqcc.h opts.def
 intrin.o: parser.h gmqcc.h opts.def lexer.h ast.h ir.h
 ir.o: gmqcc.h opts.def ir.h
 lexer.o: gmqcc.h opts.def lexer.h