Skip to content

Commit

Permalink
Add -Wno-deprecated-declarations (#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Headline authored Jan 31, 2025
1 parent 8fc2f39 commit 60d7f60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -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 += [
Expand Down

0 comments on commit 60d7f60

Please sign in to comment.