Fixed the build error using gcc 13 93/295093/1
authorwchang kim <wchang.kim@samsung.com>
Mon, 3 Jul 2023 02:04:31 +0000 (11:04 +0900)
committerwchang kim <wchang.kim@samsung.com>
Mon, 3 Jul 2023 02:04:31 +0000 (11:04 +0900)
Change-Id: Id8c09ebc0a4285324995a8da81a84decc5eeea33

client/CMakeLists.txt
common/VoiceControlEngines.h
server/CMakeLists.txt

index 0195eb3..28801c7 100644 (file)
@@ -83,6 +83,9 @@ FOREACH(flag ${pkgs_CFLAGS})
 ENDFOREACH(flag)
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
 SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ADD_DEFINITIONS("-Wno-format-overflow")
+ADD_DEFINITIONS("-Wno-nonnull")
 ## for LCOV
 #SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fprofile-arcs -ftest-coverage")
 #SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fprofile-arcs -ftest-coverage")
index 9848900..60dfe59 100644 (file)
@@ -19,6 +19,7 @@
 #include <string>
 #include <mutex>
 #include <memory>
+#include <stdexcept>
 
 #include "VoiceControlEngineInfo.h"
 
index 4b1b80e..12ae377 100644 (file)
@@ -43,6 +43,8 @@ SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -fPIE")
 SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIE")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
 
+ADD_DEFINITIONS("-Wno-format-overflow")
+
 ## Executable ##
 #ADD_EXECUTABLE("${PROJECT_NAME}-daemon" ${SRCS})
 #TARGET_LINK_LIBRARIES("${PROJECT_NAME}-daemon" -ldl -lm ${pkgs_LDFLAGS})