Enable extra compiler checks
authorPetr Štetiar <ynezz@true.cz>
Wed, 10 Apr 2019 09:02:12 +0000 (11:02 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 10 Apr 2019 14:05:40 +0000 (16:05 +0200)
Let's enforce additional automatic checks enforced by the compiler in
order to catch possible errors during compilation.

Reviewed-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt

index bc18c1f6d0d7f6419af29265dfb55186df061160..f30ca80374e9c76cfd94727cfc0772bfb710b226 100644 (file)
@@ -4,7 +4,7 @@ PROJECT(umbim C)
 
 OPTION(PROXY OFF)
 
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -ggdb -Wextra -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unused-parameter)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")