trunk/src/build/flags_clang.mak
| r32305 | r32306 | |
| 1 | 1 | CCOMFLAGS += \ |
| 2 | 2 | -Wno-cast-align \ |
| 3 | 3 | -Wno-tautological-compare \ |
| 4 | | -Wno-constant-logical-operand \ |
| 5 | 4 | -Wno-format-security |
| 6 | 5 | |
| 7 | 6 | # caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc |
| r32305 | r32306 | |
| 10 | 9 | # caused by src/emu/cpu/tms34010/34010gfx.c |
| 11 | 10 | CCOMFLAGS += -Wno-shift-count-overflow |
| 12 | 11 | |
| 12 | # caused by src/emu/cpu/h8/h8_timer16.c, src/mame/video/jagblit.inc, src/emu/video/stvvdp2.c |
| 13 | CCOMFLAGS += -Wno-constant-logical-operand |
| 14 | |
| 13 | 15 | # TODO: needs to use $(CC) |
| 14 | 16 | TEST_CLANG := $(shell clang --version) |
| 15 | 17 | |
| r32305 | r32306 | |
| 18 | 20 | endif |
| 19 | 21 | |
| 20 | 22 | ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5) |
| 21 | | CCOMFLAGS += -Wno-inline-new-delete -Wno-absolute-value -Wno-dynamic-class-memaccess |
| 23 | CCOMFLAGS += -Wno-inline-new-delete |
| 24 | # caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc |
| 25 | CCOMFLAGS += -Wno-absolute-value |
| 26 | # caused by src/emu/bus/isa/s3virge.c, src/emu/cpu/drcfe.c, src/emu/video/pc_vga.c |
| 27 | CCOMFLAGS +=-Wno-dynamic-class-memaccess |
| 22 | 28 | # these were disabled because of bugs in older clang versions |
| 23 | 29 | CCOMFLAGS += -Wformat-security |
| 24 | 30 | # these show up when compiling as c++11 |