Commit 90e24887 authored by Ghislain MARY's avatar Ghislain MARY

Fix crash in linphone_call_update_ice_from_remote_media_description() when...

Fix crash in linphone_call_update_ice_from_remote_media_description() when building with GCC >= 4.9 and -O2.
parent 9cafb438
......@@ -247,6 +247,9 @@ if(MSVC)
else()
list(APPEND STRICT_OPTIONS_CPP "-Wall" "-Wuninitialized" "-Wno-error=deprecated-declarations")
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement" "-Wstrict-prototypes" "-Werror=strict-prototypes")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
list(APPEND STRICT_OPTIONS_C "-fno-inline-small-functions")
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
list(APPEND STRICT_OPTIONS_CPP "-Qunused-arguments" "-Wno-array-bounds")
endif()
......
......@@ -777,6 +777,9 @@ STRICT_OPTIONS_CXX=""
#for clang
case $CC in
*gcc*)
STRICT_OPTIONS="$STRICT_OPTIONS -fno-inline-small-functions"
;;
*clang*)
STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments "
#disabled due to wrong optimization false positive with small string
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment