diff options
author | R. Belmont <rb6502@users.noreply.github.com> | 2012-06-15 02:23:19 +0000 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2012-06-15 02:23:19 +0000 |
commit | 72e6e33b4c039d913515edc3cd95b62f9bb27042 (patch) | |
tree | fc4e4ce7d5d6feb35587045cc30be91c52ced755 /src/osd/sdl | |
parent | 5f8ce31feba0d87073791882f6c5b65c5298055b (diff) |
SDL: Support newer Linux distros using GCC 4.7 [R. Belmont]
Diffstat (limited to 'src/osd/sdl')
-rw-r--r-- | src/osd/sdl/sdl.mak | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak index d95aa32ae2c..bdd6f42c401 100644 --- a/src/osd/sdl/sdl.mak +++ b/src/osd/sdl/sdl.mak @@ -281,6 +281,17 @@ $(error $(TARGETOS) not supported !) endif #------------------------------------------------- +# GCC 4.7 workaround (discrete audio needs type-safe rewrite to fix this for real) +#------------------------------------------------- + +ifneq ($(BASE_TARGETOS),win32) +CCVERS = $(shell gcc --version) +ifneq (,$(findstring 4.7,$(CCVERS))) +CCOMFLAGS += -Wno-narrowing -Wno-attributes +endif +endif + +#------------------------------------------------- # object and source roots #------------------------------------------------- |