trunk/src/build/flags_clang.mak
| r32304 | r32305 | |
| 1 | | # TODO: some of these are no longer necessary for newer clang versions - re-enable them |
| 2 | 1 | CCOMFLAGS += \ |
| 3 | 2 | -Wno-cast-align \ |
| 4 | 3 | -Wno-tautological-compare \ |
| 5 | 4 | -Wno-constant-logical-operand \ |
| 6 | | -Wno-format-security \ |
| 7 | | -Wno-shift-count-overflow \ |
| 8 | | -Wno-self-assign-field |
| 5 | -Wno-format-security |
| 9 | 6 | |
| 7 | # caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc |
| 8 | CCOMFLAGS += -Wno-self-assign-field |
| 9 | |
| 10 | # caused by src/emu/cpu/tms34010/34010gfx.c |
| 11 | CCOMFLAGS += -Wno-shift-count-overflow |
| 12 | |
| 10 | 13 | # TODO: needs to use $(CC) |
| 11 | 14 | TEST_CLANG := $(shell clang --version) |
| 12 | 15 | |
| r32304 | r32305 | |
| 16 | 19 | |
| 17 | 20 | ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5) |
| 18 | 21 | CCOMFLAGS += -Wno-inline-new-delete -Wno-absolute-value -Wno-dynamic-class-memaccess |
| 19 | | # XCode 6.0.1 is built on a pre-release SVN version of clang 3.5, that doesn't support -Wno-absolute-value yet - so ignore that warning for now |
| 22 | # these were disabled because of bugs in older clang versions |
| 23 | CCOMFLAGS += -Wformat-security |
| 24 | # these show up when compiling as c++11 |
| 25 | CCOMFLAGS += -Wno-deprecated-register -Wno-reserved-user-defined-literal -Wno-c++11-narrowing |
| 26 | # TODO: add proper detection of XCode 6.0.1 |
| 27 | # XCode 6.0.1 is built on a pre-release SVN version of clang 3.5, that doesn't support -Wno-absolute-value yet |
| 20 | 28 | CCOMFLAGS += -Wno-unknown-warning-option |
| 21 | 29 | # XCode 6.0.1 gives this when using SDL2 in /Library/Frameworks/SDL2.framework/Headers/SDL_syswm.h:150 included from src/osd/sdl/sdlinc.h |
| 22 | 30 | CCOMFLAGS += -Wno-extern-c-compat |