Add -Wall in build flag for avoiding build error 74/232874/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 8 May 2020 05:30:52 +0000 (14:30 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 8 May 2020 05:30:52 +0000 (14:30 +0900)
Change-Id: I5523c48fcd436424fb970883f61284f6dfa45ec1
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
consumer/CMakeLists.txt
provider/CMakeLists.txt
receiver/CMakeLists.txt

index 0e554b0..f98cc42 100644 (file)
@@ -10,7 +10,7 @@ INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/include)
 FOREACH(flag ${pkgs_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall")
 
 ## Add definitions ##
 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
index 9eb6d49..ea3c48a 100644 (file)
@@ -10,7 +10,7 @@ INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/include)
 FOREACH(flag ${pkgs_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall")
 
 ## Add definitions ##
 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
index 90c3837..4797abb 100644 (file)
@@ -35,8 +35,8 @@ ENDFOREACH(flag)
 
 ADD_DEFINITIONS("-DEXPORTED=__attribute__((visibility(\"default\")))")
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -fPIE")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
 
 FIND_PROGRAM(UNAME NAMES uname)