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
parent
e82ed4e876
commit
c99904585b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue