From f9ece7be47607b65ec6ee1e4fa3d5d38d084f6a7 Mon Sep 17 00:00:00 2001 From: wchang kim Date: Mon, 3 Jul 2023 11:04:31 +0900 Subject: [PATCH] Fixed the build error using gcc 13 Change-Id: Id8c09ebc0a4285324995a8da81a84decc5eeea33 --- client/CMakeLists.txt | 3 +++ common/VoiceControlEngines.h | 1 + server/CMakeLists.txt | 2 ++ 3 files changed, 6 insertions(+) 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}) -- 2.34.1