diff --git a/build/moz.configure/warnings.configure b/build/moz.configure/warnings.configure index 88acd905f216..ac35a0e572c2 100755 --- a/build/moz.configure/warnings.configure +++ b/build/moz.configure/warnings.configure @@ -99,6 +99,7 @@ check_and_add_warning("-Wc++2a-compat", cxx_compiler) check_and_add_warning("-Wcomma-subscript", cxx_compiler) check_and_add_warning("-Wenum-compare-conditional") check_and_add_warning("-Wenum-float-conversion") +check_and_add_warning("-Wvolatile", cxx_compiler) # Downgrade some C++20 warnings-as-errors to warnings that we can fix after we # compile as C++20 (bug 1768116). They don't need to block upgrading to C++20. @@ -108,8 +109,6 @@ check_and_add_warning("-Wno-error=deprecated-anon-enum-enum-conversion", cxx_com check_and_add_warning("-Wno-error=deprecated-enum-enum-conversion", cxx_compiler) check_and_add_warning("-Wno-error=deprecated-pragma", cxx_compiler) check_and_add_warning("-Wno-error=deprecated-this-capture", cxx_compiler) -check_and_add_warning("-Wno-error=deprecated-volatile", cxx_compiler) -check_and_add_warning("-Wno-error=volatile", cxx_compiler) # catches possible misuse of the comma operator check_and_add_warning("-Wcomma", cxx_compiler)