Browse Source

Tell the compiler to be more pedantic for debug builds.

tastytea 2 weeks ago
parent
commit
cfb21e3e2b
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      CMakeLists.txt

+ 2
- 1
CMakeLists.txt View File

@@ -16,7 +16,8 @@ set(CMAKE_CXX_STANDARD 14)
16 16
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
17 17
 set(CMAKE_CXX_EXTENSIONS OFF)
18 18
 
19
-set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -g -Og")
19
+set(CMAKE_CXX_FLAGS_DEBUG
20
+    "${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic -Wextra -g -Og")
20 21
 
21 22
 # Do not complain about compatibility-wrapper
22 23
 if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")

Loading…
Cancel
Save