trunk/src/build/flags_clang.mak
| r243376 | r243377 | |
| 1 | 1 | CCOMFLAGS += \ |
| 2 | 2 | -Wno-cast-align \ |
| 3 | | -Wno-tautological-compare \ |
| 4 | | -Wno-format-security |
| 3 | -Wno-tautological-compare |
| 5 | 4 | |
| 6 | 5 | # caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc |
| 7 | 6 | CCOMFLAGS += -Wno-self-assign-field |
| 8 | 7 | |
| 9 | 8 | # caused by src/mame/video/jagblit.inc on older clang versions |
| 10 | | CCOMFLAGS += -Wno-constant-logical-operand |
| 9 | #CCOMFLAGS += -Wno-constant-logical-operand |
| 11 | 10 | |
| 11 | # caused by popmessage(NULL) on older clang versions |
| 12 | #CCOMFLAGS += -Wno-format-security |
| 13 | |
| 12 | 14 | ifneq (,$(findstring undefined,$(SANITIZE))) |
| 13 | 15 | # TODO: check if linker is clang++ |
| 14 | 16 | # produces a lot of messages - disable it for now |
| r243376 | r243377 | |
| 30 | 32 | |
| 31 | 33 | ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5) |
| 32 | 34 | CCOMFLAGS += -Wno-inline-new-delete |
| 33 | | # caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc |
| 34 | | CCOMFLAGS += -Wno-absolute-value |
| 35 | | # these were disabled because of bugs in older clang versions |
| 36 | | CCOMFLAGS += -Wformat-security -Wconstant-logical-operand |
| 37 | 35 | # these show up when compiling as c++11 |
| 38 | 36 | CCOMFLAGS += -Wno-deprecated-register -Wno-reserved-user-defined-literal -Wno-c++11-narrowing |
| 37 | |
| 38 | # caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc, src/mame/video/chihiro.c |
| 39 | CCOMFLAGS += -Wno-absolute-value |
| 40 | |
| 39 | 41 | # TODO: add proper detection of XCode 6.0.1 |
| 40 | 42 | # XCode 6.0.1 is built on a pre-release SVN version of clang 3.5, that doesn't support -Wno-absolute-value yet |
| 41 | 43 | CCOMFLAGS += -Wno-unknown-warning-option |
| r243376 | r243377 | |
| 56 | 58 | endif |
| 57 | 59 | endif |
| 58 | 60 | |
| 61 | ifeq ($(findstring 3.6,$(TEST_CLANG)),3.6) |
| 62 | CCOMFLAGS += -Wno-inline-new-delete |
| 63 | # caused by macros in src/emu/addrmap.h |
| 64 | CCOMFLAGS += -Wno-unused-local-typedef |
| 65 | |
| 66 | # caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc, src/mame/video/chihiro.c |
| 67 | CCOMFLAGS += -Wno-absolute-value |
| 68 | endif |
| 69 | |
| 59 | 70 | ifeq ($(TARGETOS),emscripten) |
| 60 | 71 | CCOMFLAGS += -Qunused-arguments |
| 61 | 72 | endif |