build: enable -Wextra for gcc and clang builds

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

View File

@ -6,7 +6,7 @@ link_libraries(ws2_32)
if(MSVC)
add_compile_options(/Wall /wd4127 /wd4201 /wd4242 /wd4710 /wd4711 /wd4820)
else()
add_compile_options(-Wall)
add_compile_options(-Wall -Wextra)
endif()
file(GLOB SOURCES_SRC src/*.c src/*.h)