Skip to content

Commit bc972d6

Browse files
committed
Add -Wextra to non-MSVC, to catch unused variable warnings going forward.
1 parent bf9df8e commit bc972d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (MSVC)
2121
# fine for anything except ancient MSVC versions.
2222
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
2323
else()
24-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic")
24+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
2525

2626
# CMake versions before 3.1 do not understand CMAKE_CXX_STANDARD.
2727
# Remove this block once CMake >=3.1 has fixated in the ecosystem.

0 commit comments

Comments
 (0)