diff options
author | Oliver Stöneberg <oliverst@online.de> | 2015-02-05 14:49:05 +0100 |
---|---|---|
committer | Oliver Stöneberg <oliverst@online.de> | 2015-02-05 14:49:05 +0100 |
commit | 6790ff2ebddc094ca59945b59724ff6122cf5ec7 (patch) | |
tree | a5c069a6fd53722ca120caa019858067a7eeb7a6 | |
parent | af64bda24d6325340b203a852bae59978a90c56b (diff) |
flags_clang.mak: additions for clang 3.6 and cleanups (nw)
also enabled some warning by default again. they were disabled because
of bugs in clang which have been fixed by now. unfortunately the
disabling predates the proper version handling, so it's not clear for
which versions they should be ignored. so if they come up again we just
need to re-add them by checking for the proper version
-rw-r--r-- | src/build/flags_clang.mak | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/build/flags_clang.mak b/src/build/flags_clang.mak index 9c151b1c5a8..bf2db03fb42 100644 --- a/src/build/flags_clang.mak +++ b/src/build/flags_clang.mak @@ -1,13 +1,15 @@ CCOMFLAGS += \ -Wno-cast-align \ - -Wno-tautological-compare \ - -Wno-format-security + -Wno-tautological-compare # caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc CCOMFLAGS += -Wno-self-assign-field # caused by src/mame/video/jagblit.inc on older clang versions -CCOMFLAGS += -Wno-constant-logical-operand +#CCOMFLAGS += -Wno-constant-logical-operand + +# caused by popmessage(NULL) on older clang versions +#CCOMFLAGS += -Wno-format-security ifneq (,$(findstring undefined,$(SANITIZE))) # TODO: check if linker is clang++ @@ -30,12 +32,12 @@ endif ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5) CCOMFLAGS += -Wno-inline-new-delete -# caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc -CCOMFLAGS += -Wno-absolute-value -# these were disabled because of bugs in older clang versions -CCOMFLAGS += -Wformat-security -Wconstant-logical-operand # these show up when compiling as c++11 CCOMFLAGS += -Wno-deprecated-register -Wno-reserved-user-defined-literal -Wno-c++11-narrowing + +# caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc, src/mame/video/chihiro.c +CCOMFLAGS += -Wno-absolute-value + # TODO: add proper detection of XCode 6.0.1 # XCode 6.0.1 is built on a pre-release SVN version of clang 3.5, that doesn't support -Wno-absolute-value yet CCOMFLAGS += -Wno-unknown-warning-option @@ -56,6 +58,15 @@ CCOMFLAGS += -fno-sanitize=signed-integer-overflow endif endif +ifeq ($(findstring 3.6,$(TEST_CLANG)),3.6) +CCOMFLAGS += -Wno-inline-new-delete +# caused by macros in src/emu/addrmap.h +CCOMFLAGS += -Wno-unused-local-typedef + +# caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc, src/mame/video/chihiro.c +CCOMFLAGS += -Wno-absolute-value +endif + ifeq ($(TARGETOS),emscripten) CCOMFLAGS += -Qunused-arguments endif |