From: Petr Štetiar Date: Mon, 10 Jun 2019 06:45:56 +0000 (+0200) Subject: enable extra compiler checks X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c955464d7a9be12d1cc8a249291cfda54c0b7571;p=project%2Flibubox.git 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 57804cf..7a86854 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)