[Tizen] Fix for GCC14
authorHosang Kim <hosang12.kim@samsung.com>
Tue, 11 Jun 2024 07:45:35 +0000 (16:45 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Tue, 11 Jun 2024 07:45:35 +0000 (16:45 +0900)
This reverts commit 578445a33e3a6e97bbebc666accf69b84bf3bfae.

build/tizen/CMakeLists.txt
dali/internal/common/const-string.cpp

index 49866e4..f58f7da 100644 (file)
@@ -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 )
index f9e7f31..64af70b 100644 (file)
@@ -19,6 +19,7 @@
 #include <dali/internal/common/const-string.h>
 
 // EXTERNAL INCLUDES
+#include <cstdlib>
 #include <cstddef>
 #include <cstring>
 #include <functional>