Suppress -Wdangling-reference GCC 13 warning

This commit is contained in:
Karen Arutyunov 2023-06-26 20:49:04 +03:00
parent c93a4777d7
commit 6e530d4c57

View File

@ -13,6 +13,11 @@ if ($cxx.target.system == 'win32-msvc')
if ($cxx.class == 'msvc') if ($cxx.class == 'msvc')
cc.coptions += /wd4251 /wd4275 /wd4800 cc.coptions += /wd4251 /wd4275 /wd4800
elif ($cxx.id == 'gcc') elif ($cxx.id == 'gcc')
{
cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object # libbutl cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object # libbutl
if ($cxx.version.major >= 13)
cxx.coptions += -Wno-dangling-reference
}
elif ($cxx.id.type == 'clang' && $cxx.version.major >= 15) elif ($cxx.id.type == 'clang' && $cxx.version.major >= 15)
cxx.coptions += -Wno-unqualified-std-cast-call cxx.coptions += -Wno-unqualified-std-cast-call