summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-06-27 12:17:18 -0700
committerMichael Pavone <pavone@retrodev.com>2015-06-27 12:17:18 -0700
commit41427a5cbad6eae33ec644d38227fc7301d7a8c6 (patch)
treeef4faaa1184dc182967110397a05bd06d0b3ed9b /Makefile
parent0ce892b31ad6767fc1658d47418b9f7d14faab05 (diff)
Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8c51ce8..bbd44f4 100644
--- a/Makefile
+++ b/Makefile
@@ -25,10 +25,10 @@ LIBS=sdl2 glew gl
endif #Darwin
ifdef DEBUG
-CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration
+CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wno-logical-op-parentheses
LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS))
else
-CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration
+CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value -Wno-logical-op-parentheses
LDFLAGS:=-O2 -flto -lm $(shell pkg-config --libs $(LIBS))
endif #DEBUG
endif #Windows