Previous 199869 Revisions Next

r34865 Thursday 5th February, 2015 at 13:49:05 UTC by Oliver Stöneberg
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
[src/build]flags_clang.mak

trunk/src/build/flags_clang.mak
r243376r243377
11CCOMFLAGS += \
22   -Wno-cast-align \
3   -Wno-tautological-compare \
4   -Wno-format-security
3   -Wno-tautological-compare
54
65# caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc
76CCOMFLAGS += -Wno-self-assign-field
87
98# caused by src/mame/video/jagblit.inc on older clang versions
10CCOMFLAGS += -Wno-constant-logical-operand
9#CCOMFLAGS += -Wno-constant-logical-operand
1110
11# caused by popmessage(NULL) on older clang versions
12#CCOMFLAGS += -Wno-format-security
13
1214ifneq (,$(findstring undefined,$(SANITIZE)))
1315# TODO: check if linker is clang++
1416# produces a lot of messages - disable it for now
r243376r243377
3032
3133ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5)
3234CCOMFLAGS += -Wno-inline-new-delete
33# caused by src/mess/drivers/x07.c, src/osd/sdl/window.c, src/emu/sound/disc_mth.inc
34CCOMFLAGS += -Wno-absolute-value
35# these were disabled because of bugs in older clang versions
36CCOMFLAGS += -Wformat-security -Wconstant-logical-operand
3735# these show up when compiling as c++11
3836CCOMFLAGS += -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
39CCOMFLAGS += -Wno-absolute-value
40
3941# TODO: add proper detection of XCode 6.0.1
4042# XCode 6.0.1 is built on a pre-release SVN version of clang 3.5, that doesn't support -Wno-absolute-value yet
4143CCOMFLAGS += -Wno-unknown-warning-option
r243376r243377
5658endif
5759endif
5860
61ifeq ($(findstring 3.6,$(TEST_CLANG)),3.6)
62CCOMFLAGS += -Wno-inline-new-delete
63# caused by macros in src/emu/addrmap.h
64CCOMFLAGS += -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
67CCOMFLAGS += -Wno-absolute-value
68endif
69
5970ifeq ($(TARGETOS),emscripten)
6071CCOMFLAGS += -Qunused-arguments
6172endif


Previous 199869 Revisions Next


© 1997-2024 The MAME Team