Add build option -Wall -Werror
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 5 Feb 2020 08:20:50 +0000 (17:20 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 5 Feb 2020 08:20:50 +0000 (17:20 +0900)
Change-Id: I3739b8dcfbd9d80eb4976bb21b26a6de4368e4ae
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
CMakeLists.txt

index d5b5fee..d14c8c0 100644 (file)
@@ -5,6 +5,8 @@ SET(CMAKE_VERBOSE_MAKEFILE OFF)
 
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")
+
 ADD_SUBDIRECTORY(hw/battery)
 ADD_SUBDIRECTORY(hw/cpu)
 ADD_SUBDIRECTORY(hw/display)