Revert "SERVER-95993 suppress -Winterference-size (#29519)" (#29716)

GitOrigin-RevId: e670cc00248bc7a7f53144a8087cfb408e4ebc57
This commit is contained in:
Ryan Berryhill 2024-11-29 17:48:46 -05:00 committed by MongoDB Bot
parent 5133db7f09
commit b20cc2759c
3 changed files with 0 additions and 19 deletions

View File

@ -111,7 +111,6 @@ Checks: '-*,
-cert-err60-cpp,
-cert-flp30-c,
-clang-diagnostic-builtin-macro-redefined,
-clang-diagnostic-unknown-warning-option,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-interfaces-global-init,

View File

@ -3908,10 +3908,6 @@ def doConfigure(myenv):
# This warning overzealously warns on uses of non-virtual destructors which are benign.
myenv.AddToCXXFLAGSIfSupported("-Wno-non-virtual-dtor")
# We do not define an ABI that must be stable from build to build, so inconsistent hardware
# interference sizes between builds does not affect correctness.
myenv.AddToCXXFLAGSIfSupported("-Wno-interference-size")
# TODO(SERVER-97447): Remove this once we're fully on the v5 toolchain. In the meantime, we
# need to suppress some warnings that are only recognized by the new compilers.
myenv.AddToCXXFLAGSIfSupported("-Wno-unknown-warning-option")

View File

@ -712,19 +712,6 @@ def _impl(ctx):
],
)
# We do not define an ABI that must be stable from build to build, so inconsistent hardware
# interference sizes between builds does not affect correctness.
no_interference_size_warning_feature = feature(
name = "no_interference_size_warning",
enabled = True,
flag_sets = [
flag_set(
actions = all_cpp_compile_actions,
flag_groups = [flag_group(flags = ["-Wno-interference-size"])],
),
],
)
features = [
bin_dirs_feature,
default_compile_flags_feature,
@ -765,7 +752,6 @@ def _impl(ctx):
pessimizing_move_warning_feature,
no_invalid_offsetof_warning_feature,
no_class_memaccess_warning_feature,
no_interference_size_warning_feature,
]
return [