From ce7d256671c1a4a01335978856f093c0283b7539 Mon Sep 17 00:00:00 2001 From: Emre Ucan Date: Fri, 23 Feb 2018 10:11:25 +0100 Subject: cmake: set CFLAGS for extra warnings Compiler warnings are generally good to track issues in source code. I disabled unused-parameter warnings, because we cannot control parameters of external library functions Signed-off-by: Emre Ucan --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 693ebfc..d408ea0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ project(wayland-ivi-extension) SET(IVI_EXTENSION_VERSION 2.1.0) SET(ILM_API_VERSION 2.1.0) +SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter" ) +SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter" ) + add_subdirectory(protocol) add_subdirectory(weston-ivi-shell) -- cgit v1.2.1