comparison Makefile @ 755:7306b3967c51

Cleanup some warnings under clang through a combination of code fixes and supressing specific warnings
author Michael Pavone <pavone@retrodev.com>
date Sat, 27 Jun 2015 12:17:18 -0700
parents 6f439a197f61
children ffb8cc5845fa
comparison
equal deleted inserted replaced
754:cfa402c6ced8 755:7306b3967c51
23 else 23 else
24 LIBS=sdl2 glew gl 24 LIBS=sdl2 glew gl
25 endif #Darwin 25 endif #Darwin
26 26
27 ifdef DEBUG 27 ifdef DEBUG
28 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration 28 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
29 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS)) 29 LDFLAGS:=-ggdb -lm $(shell pkg-config --libs $(LIBS))
30 else 30 else
31 CFLAGS:=-O2 -flto -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration 31 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
32 LDFLAGS:=-O2 -flto -lm $(shell pkg-config --libs $(LIBS)) 32 LDFLAGS:=-O2 -flto -lm $(shell pkg-config --libs $(LIBS))
33 endif #DEBUG 33 endif #DEBUG
34 endif #Windows 34 endif #Windows
35 35
36 ifdef Z80_LOG_ADDRESS 36 ifdef Z80_LOG_ADDRESS