From 7d15259a35394503eb46d87666b30f8b14217045 Mon Sep 17 00:00:00 2001 From: Seungho Baek Date: Mon, 10 Jun 2024 18:06:51 +0900 Subject: [PATCH] Fix for GCC14 Change-Id: I3a0528f8c6752e2f042a5cf6bfa11b66d875b22a Signed-off-by: Seungho Baek --- build/tizen/CMakeLists.txt | 15 +++++++++++++++ dali/internal/common/const-string.cpp | 1 + 2 files changed, 16 insertions(+) diff --git a/build/tizen/CMakeLists.txt b/build/tizen/CMakeLists.txt index 49866e4..f58f7da 100644 --- a/build/tizen/CMakeLists.txt +++ b/build/tizen/CMakeLists.txt @@ -169,6 +169,21 @@ ELSEIF( UNIX ) ADD_COMPILE_OPTIONS( -Wno-cast-function-type ) ENDIF() + CHECK_CXX_COMPILER_FLAG(-Wno-template-id-cdtor HAVE_NO_TEMPLATE_ID_CDTOR) + IF (HAVE_NO_TEMPLATE_ID_CDTOR) + ADD_COMPILE_OPTIONS( -Wno-template-id-cdtor ) + ENDIF() + + CHECK_CXX_COMPILER_FLAG(-Wno-dangling-reference HAVE_NO_DANGLING_REFERENCE) + IF (HAVE_NO_DANGLING_REFERENCE) + ADD_COMPILE_OPTIONS( -Wno-dangling-reference ) + ENDIF() + + CHECK_CXX_COMPILER_FLAG(-Wno-unused-result HAVE_NO_UNUSED_RESULT) + IF (HAVE_NO_UNUSED_RESULT) + ADD_COMPILE_OPTIONS( -Wno-unused-result ) + ENDIF() + CHECK_CXX_COMPILER_FLAG(-Wno-string-plus-int HAVE_NO_STRING_PLUS_INT) IF (HAVE_NO_STRING_PLUS_INT) ADD_COMPILE_OPTIONS( -Wno-string-plus-int ) diff --git a/dali/internal/common/const-string.cpp b/dali/internal/common/const-string.cpp index f9e7f31..64af70b 100644 --- a/dali/internal/common/const-string.cpp +++ b/dali/internal/common/const-string.cpp @@ -19,6 +19,7 @@ #include // EXTERNAL INCLUDES +#include #include #include #include -- 2.7.4