EXT-7005 : Kill unhelpful 'Deprecated conversion from string to char *' warnings from fmod_errors.h when building with GCC >=4.2 on Darwin

Apply -Wno-write-strings compile flag to llaudioengine_fmod.cpp and llstreamingaudio_fmod.cpp on Darwin as it was on Linux (Amen).
Removed unnecessary check for GCC >= 4.2 when applying this flag, as CXX_VERSION_NUMBER it used is only being generated in 00-Common.cmake on Linux at the moment and 4.0 understands -Wno-write-strings anyway.
meow-7.2.2
Aimee Linden 2010-04-24 14:50:33 +01:00
parent e82ed4e876
commit c99904585b
1 changed files with 5 additions and 7 deletions

View File

@ -57,13 +57,11 @@ if (FMOD)
llstreamingaudio_fmod.h
)
if (LINUX)
if (${CXX_VERSION_NUMBER} GREATER 419)
set_source_files_properties(llaudioengine_fmod.cpp
llstreamingaudio_fmod.cpp
COMPILE_FLAGS -Wno-write-strings)
endif (${CXX_VERSION_NUMBER} GREATER 419)
endif (LINUX)
if (LINUX OR DARWIN)
set_source_files_properties(llaudioengine_fmod.cpp
llstreamingaudio_fmod.cpp
COMPILE_FLAGS -Wno-write-strings)
endif (LINUX OR DARWIN)
endif (FMOD)
if (OPENAL)