Add -Wno-deprecated-declarations (#2254)

This commit is contained in:
Headline
2025-01-31 03:46:09 +00:00
committed by GitHub
parent 8fc2f39d37
commit 60d7f605cb
+4
View File
@@ -291,6 +291,10 @@ class SMConfig(object):
raise Exception('--enable-asan only supported when using Clang')
self.configure_asan(cxx)
# AMTL uses std::bind
if (have_gcc and cxx.version >= 'gcc-10.0') or (have_clang and cxx.version >= 'clang-12.0'):
cxx.cxxflags += ['-Wno-deprecated-declarations']
# Work around SDK warnings.
if cxx.version >= 'clang-10.0' or cxx.version >= 'apple-clang-12.0':
cxx.cflags += [