build: treat warnings as errors

This commit is contained in:
Bert Belder 2018-05-02 04:20:43 +02:00
parent 5313db4399
commit f4cfe68f5b
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -4,9 +4,9 @@ project(wepoll)
link_libraries(ws2_32) link_libraries(ws2_32)
if(MSVC) if(MSVC)
add_compile_options(/Wall /wd4127 /wd4201 /wd4242 /wd4710 /wd4711 /wd4820) add_compile_options(/Wall /WX /wd4127 /wd4201 /wd4242 /wd4710 /wd4711 /wd4820)
else() else()
add_compile_options(-Wall -Wextra) add_compile_options(-Wall -Wextra -Werror)
endif() endif()
file(GLOB SOURCES_SRC src/*.c src/*.h) file(GLOB SOURCES_SRC src/*.c src/*.h)