mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
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
This commit is contained in:
parent
af64bda24d
commit
6790ff2ebd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user