Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit a7c9777

Browse files
committed
Set CI build warning level to -Wall -Wextra -Wpedantic -Werror
Compiler warnings will be displayed in the Travis CI build log and the build will fail if any warnings are encountered.
1 parent 1c6c3fc commit a7c9777

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ set(TEST_SRCS
5151
##########################################################################
5252

5353
add_definitions(-DHOST_BUILD)
54+
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
5455

5556
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage")
5657
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage")

0 commit comments

Comments
 (0)