From f8a2d5ddaa03d22fe10ff9d56d4cbf8494dae032 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Mon, 28 Jul 2025 18:54:05 +0200 Subject: [PATCH] Silence mongoose warnings C++20 removed a sizable portion of valid places to use volatile specifier. As mongoose is on the way out just add the warning to the list of suppressed warnings. Further add a warning already suppressed when using GCC to the list of suppressed warnings with Clang. Signed-off-by: Ralph Sennhauser --- source/third_party/mongoose/mongoose.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/third_party/mongoose/mongoose.cpp b/source/third_party/mongoose/mongoose.cpp index ad619ccb1b..6dc9a11783 100644 --- a/source/third_party/mongoose/mongoose.cpp +++ b/source/third_party/mongoose/mongoose.cpp @@ -37,6 +37,12 @@ # pragma GCC diagnostic ignored "-Wcast-function-type" # pragma GCC diagnostic ignored "-Wmaybe-uninitialized" # pragma GCC diagnostic ignored "-Wunused-but-set-variable" +# pragma GCC diagnostic ignored "-Wvolatile" +# else +# pragma GCC diagnostic ignored "-Wdeprecated-volatile" +# if __clang_major__ >= 19 +# pragma GCC diagnostic ignored "-Wcast-function-type-mismatch" +# endif # endif #endif