Revert "Fix another GCC warning"
authorLoïc Blot <loic.blot@unix-experience.fr>
Tue, 4 Dec 2018 15:45:07 +0000 (16:45 +0100)
committerLoïc Blot <loic.blot@unix-experience.fr>
Tue, 4 Dec 2018 15:45:07 +0000 (16:45 +0100)
This reverts commit e6811184d5824bf7d8febc157495dbecd3e4e0f7.

src/CMakeLists.txt

index c73b155336567532c777577807d2f77ca75a1313..8218d586c85a27556279f4540d8fbc2d28301786 100644 (file)
@@ -6,7 +6,7 @@ INCLUDE(CheckIncludeFiles)
 INCLUDE(CheckLibraryExists)
 
 # Add custom SemiDebug build mode
-set(CMAKE_CXX_FLAGS_SEMIDEBUG "-O1 -g -Wall -Wabi=11" CACHE STRING
+set(CMAKE_CXX_FLAGS_SEMIDEBUG "-O1 -g -Wall -Wabi" CACHE STRING
        "Flags used by the C++ compiler during semidebug builds."
        FORCE
 )
@@ -724,8 +724,8 @@ else()
        else()
                set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -ffast-math -fomit-frame-pointer")
        endif(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
-       set(CMAKE_CXX_FLAGS_SEMIDEBUG "-g -O1 -Wall -Wabi=11 ${WARNING_FLAGS} ${OTHER_FLAGS}")
-       set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wabi=11 ${WARNING_FLAGS} ${OTHER_FLAGS}")
+       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}")
 
        if(USE_GPROF)
                set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg")