diff options
author | Loïc Blot <loic.blot@unix-experience.fr> | 2018-12-04 15:57:47 +0100 |
---|---|---|
committer | Loïc Blot <loic.blot@unix-experience.fr> | 2018-12-04 15:57:50 +0100 |
commit | e6811184d5824bf7d8febc157495dbecd3e4e0f7 (patch) | |
tree | 47e25556f7faf0aa6558be09d457251d8143d621 /src | |
parent | 7f545db9770e5bf454545ce97900eaba30b77856 (diff) | |
download | minetest-e6811184d5824bf7d8febc157495dbecd3e4e0f7.tar.gz minetest-e6811184d5824bf7d8febc157495dbecd3e4e0f7.tar.bz2 minetest-e6811184d5824bf7d8febc157495dbecd3e4e0f7.zip |
Fix another GCC warning
```
[ 10%] Building CXX object src/CMakeFiles/minetest.dir/client/render/interlaced.cpp.o
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
```
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8218d586c..c73b15533 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 -Wabi=11" 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 ${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 -Wabi=11 ${WARNING_FLAGS} ${OTHER_FLAGS}") + set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wabi=11 ${WARNING_FLAGS} ${OTHER_FLAGS}") if(USE_GPROF) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg") |