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 <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2025-07-28 18:54:05 +02:00
parent 27caf4b87d
commit f8a2d5ddaa
No known key found for this signature in database

View file

@ -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