Previous 199869 Revisions Next

r32305 Tuesday 23rd September, 2014 at 08:46:14 UTC by Oliver Stöneberg
documented some disabled clang compiler warnings / re-enabled -Wformat-security for clang 3.5 (was disabled because of a bug in clang) / disabled c++11 warnings so it compiles out-of-the-box / added TODO (nw)
[src/build]flags_clang.mak

trunk/src/build/flags_clang.mak
r32304r32305
1# TODO: some of these are no longer necessary for newer clang versions - re-enable them
21CCOMFLAGS += \
32   -Wno-cast-align \
43   -Wno-tautological-compare \
54   -Wno-constant-logical-operand \
6   -Wno-format-security \
7   -Wno-shift-count-overflow \
8   -Wno-self-assign-field
5   -Wno-format-security
96
7# caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc
8CCOMFLAGS += -Wno-self-assign-field
9
10# caused by src/emu/cpu/tms34010/34010gfx.c
11CCOMFLAGS += -Wno-shift-count-overflow
12
1013# TODO: needs to use $(CC)
1114TEST_CLANG := $(shell clang --version)
1215
r32304r32305
1619
1720ifeq ($(findstring 3.5,$(TEST_CLANG)),3.5)
1821CCOMFLAGS += -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
23CCOMFLAGS += -Wformat-security
24# these show up when compiling as c++11
25CCOMFLAGS += -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
2028CCOMFLAGS += -Wno-unknown-warning-option
2129# 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
2230CCOMFLAGS += -Wno-extern-c-compat

Previous 199869 Revisions Next


© 1997-2024 The MAME Team