From: wchang kim Date: Mon, 3 Jul 2023 02:04:31 +0000 (+0900) Subject: Fixed the build error using gcc 13 X-Git-Tag: accepted/tizen/unified/20230718.162132~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9ece7be47607b65ec6ee1e4fa3d5d38d084f6a7;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Fixed the build error using gcc 13 Change-Id: Id8c09ebc0a4285324995a8da81a84decc5eeea33 --- diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 0195eb3..28801c7 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -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") diff --git a/common/VoiceControlEngines.h b/common/VoiceControlEngines.h index 9848900..60dfe59 100644 --- a/common/VoiceControlEngines.h +++ b/common/VoiceControlEngines.h @@ -19,6 +19,7 @@ #include #include #include +#include #include "VoiceControlEngineInfo.h" diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 4b1b80e..12ae377 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -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})