enable extra compiler checks
authorPetr Štetiar <ynezz@true.cz>
Mon, 10 Jun 2019 06:45:56 +0000 (08:45 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 20 Nov 2019 13:34:01 +0000 (14:34 +0100)
Let's enforce additional automatic checks enforced by the compiler in
order to catch possible errors during compilation.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt

index 57804cf007bff57a83cafc680787fc504ae94cb0..7a86854841e311fad850960e45db85e786645efb 100644 (file)
@@ -3,7 +3,7 @@ INCLUDE(CheckLibraryExists)
 INCLUDE(CheckFunctionExists)
 
 PROJECT(ubox C)
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -Wextra -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Wno-unused-parameter)
 
 OPTION(BUILD_LUA "build Lua plugin" ON)
 OPTION(BUILD_EXAMPLES "build examples" ON)