Skip to content

Commit 4dfe014

Browse files
committed
[libc++] Add -Wno-sized-deallocation to avoid spurious GCC warnings
GCC tries to be nice and tell us that we probably want to also implement sized deallocation functions when we override the normal ones. However, we know what we're doing in the test suite and don't want to override them.
1 parent 86e0c1a commit 4dfe014

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxx/utils/libcxx/test/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,11 @@ def configure_warnings(self):
526526
self.cxx.addWarningFlagIfSupported('-Wno-noexcept-type')
527527
self.cxx.addWarningFlagIfSupported('-Wno-aligned-allocation-unavailable')
528528
self.cxx.addWarningFlagIfSupported('-Wno-atomic-alignment')
529+
530+
# GCC warns about places where we might want to add sized allocation/deallocation
531+
# functions, but we know better what we're doing/testing in the test suite.
532+
self.cxx.addWarningFlagIfSupported('-Wno-sized-deallocation')
533+
529534
# These warnings should be enabled in order to support the MSVC
530535
# team using the test suite; They enable the warnings below and
531536
# expect the test suite to be clean.

0 commit comments

Comments
 (0)