Drop -Wabi useless flag (#9676)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 16 Apr 2020 17:21:47 +0000 (19:21 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Apr 2020 17:21:47 +0000 (19:21 +0200)
src/CMakeLists.txt

index d5f774d778c96ef7e02485681651017309132b42..c3f4f439ff0a2cf2568234a3299bb03627aaf32d 100644 (file)
@@ -6,7 +6,7 @@ INCLUDE(CheckIncludeFiles)
 INCLUDE(CheckLibraryExists)
 
 # Add custom SemiDebug build mode
-set(CMAKE_CXX_FLAGS_SEMIDEBUG "-O1 -g -Wall -Wabi" CACHE STRING
+set(CMAKE_CXX_FLAGS_SEMIDEBUG "-O1 -g -Wall" CACHE STRING
        "Flags used by the C++ compiler during semidebug builds."
        FORCE
 )
@@ -731,8 +731,8 @@ else()
                        set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${MATH_FLAGS}")
                endif()
        endif(CMAKE_SYSTEM_NAME MATCHES "(Darwin|BSD|DragonFly)")
-       set(CMAKE_CXX_FLAGS_SEMIDEBUG "-g -O1 -Wall -Wabi ${WARNING_FLAGS} ${OTHER_FLAGS}")
-       set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wabi ${WARNING_FLAGS} ${OTHER_FLAGS}")
+       set(CMAKE_CXX_FLAGS_SEMIDEBUG "-g -O1 -Wall ${WARNING_FLAGS} ${OTHER_FLAGS}")
+       set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall ${WARNING_FLAGS} ${OTHER_FLAGS}")
 
        if(USE_GPROF)
                set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg")