From 42006ef812e99880a0020cd124a9378fcf9396c4 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Wed, 5 Feb 2020 17:01:23 +0900 Subject: [PATCH] Add build option -Wall -Werror Change-Id: I40035cde88b5549f0300ed61661982718cf9c047 Signed-off-by: Youngjae Cho --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42671b7..8c5de95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ PROJECT(device-manager-artik C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror") + #ADD_SUBDIRECTORY(hw/battery) ADD_SUBDIRECTORY(hw/board) ADD_SUBDIRECTORY(hw/display) @@ -12,4 +14,4 @@ ADD_SUBDIRECTORY(hw/touchscreen) ADD_SUBDIRECTORY(hw/usb_gadget) ADD_SUBDIRECTORY(hw/usb_client) ADD_SUBDIRECTORY(hw/usb_cfs_client) -ADD_SUBDIRECTORY(hw/thermal) \ No newline at end of file +ADD_SUBDIRECTORY(hw/thermal) -- 2.7.4