Add more C++20 fixes.

This commit is contained in:
David Anderson
2026-09-01 18:58:42 -07:00
parent 704f64f467
commit 001ea29ee8
5 changed files with 13 additions and 6 deletions
+4
View File
@@ -329,6 +329,10 @@ class SMConfig(object):
if cxx.version >= 'clang-16.0' or cxx.version >= 'apple-clang-15.0':
cxx.cxxflags += ['-Wno-deprecated-anon-enum-enum-conversion']
# C++20 deprecates volatile ++/-- and compound assignment (P1152R4).
if cxx.version >= 'clang-12.0' or cxx.version >= 'apple-clang-13.0':
cxx.cxxflags += ['-Wno-deprecated-volatile']
if have_gcc:
cxx.cflags += ['-Wno-maybe-uninitialized']