Skip to content

Commit 034b593

Browse files
authored
Increase warning levels (#132)
Signed-off-by: Sven Strickroth <[email protected]>
1 parent 10f4ff1 commit 034b593

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ else()
6969
add_definitions("-funsigned-char")
7070
endif()
7171

72+
# Use high warning levels
73+
if(MSVC)
74+
add_compile_options(/W4)
75+
else()
76+
add_compile_options(-Wall -Wextra -Wpedantic)
77+
endif()
78+
7279
add_subdirectory(lib)
7380
add_subdirectory(bin)
7481

0 commit comments

Comments
 (0)