Skip to content

Commit d57adfb

Browse files
committed
Using -Wall in general
MSVC supports it, too.
1 parent 82199c7 commit d57adfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/compilation.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
set(CMAKE_CXX_STANDARD 17)
22
set(CMAKE_CXX_STANDARD_REQUIRED ON)
33

4+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
5+
46
if (NOT MSVC)
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic-errors")
7+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra -pedantic-errors")
68

79
# Certain warnings are promoted to errors.
810
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=unused-variable -Werror=unused-value -Werror=return-type -Werror=shadow")

0 commit comments

Comments
 (0)