summaryrefslogblamecommitdiffstatshomepage
path: root/src/build/flags_gcc.mak
blob: 3e4d2a5c9fa4f20b5cd4957794cc5e2fec934b2b (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                  






                                                                                                                                   
                                                                                

     



                                                                              


                                     
# TODO: needs to use $(CC)
TEST_GCC := $(shell gcc --version)

ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.)
	CCOMFLAGS += -Wno-narrowing -Wno-attributes
endif

ifeq ($(findstring 4.8.,$(TEST_GCC)),4.8.)
	CCOMFLAGS += -Wno-narrowing -Wno-attributes -Wno-unused-local-typedefs
	# array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds)
	CCOMFLAGS += -Wno-unused-variable -Wno-array-bounds -Wno-strict-overflow
endif

ifeq ($(findstring 4.9.,$(TEST_GCC)),4.9.)
	CCOMFLAGS += -Wno-narrowing -Wno-attributes -Wno-unused-local-typedefs
endif

ifeq ($(findstring arm,$(UNAME)),arm)
	CCOMFLAGS += -Wno-cast-align
endif