From ce60d6b7f97f45cc6b2238fe0ca843c1e250dcc1 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Wed, 7 Aug 2024 16:20:06 +0500 Subject: [PATCH] Suppress GCC 12.x-13.x warning: region of size 0 (#1470) Signed-off-by: Vladislav Shchapov --- cmake/compilers/GNU.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake index 3b9af64263..cf6d8bdbca 100644 --- a/cmake/compilers/GNU.cmake +++ b/cmake/compilers/GNU.cmake @@ -82,6 +82,9 @@ if (NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL Intel) # gcc 6.0 and later have -flifetime-dse option that controls elimination of stores done outside the object lifetime set(TBB_DSE_FLAG $<$>:-flifetime-dse=1>) set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) + + # Suppress GCC 12.x-13.x warning here that to_wait_node(n)->my_is_in_list might have size 0 + set(TBB_COMMON_LINK_FLAGS ${TBB_COMMON_LINK_FLAGS} $<$>,$>:-Wno-stringop-overflow>) endif() # Workaround for heavy tests and too many symbols in debug (rellocation truncated to fit: R_MIPS_CALL16)