summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar2019-10-04 14:43:05 +0000
committerPetr Štetiar2019-10-29 21:16:00 +0000
commit802fbd4d6f39eae2ad555bc81158ae81d9bfbf50 (patch)
tree04f0270421766f167aae53551f1b2d6585c4418e
parent050bb5c4431b70e91a869039c8930d81970e047f (diff)
downloadlibnl-tiny-802fbd4d6f39eae2ad555bc81158ae81d9bfbf50.tar.gz
cmake: enable extra compiler checks
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>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a81727d..10bf4e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ INCLUDE(GNUInstallDirs)
INCLUDE_DIRECTORIES(include)
-ADD_DEFINITIONS(-Wall -Werror)
+ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)
STRING(REPLACE "-DNDEBUG" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
ADD_LIBRARY(nl-tiny SHARED