https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458
Bug ID: 118458
Summary: No mechanism to disable all warnings locally
(supported by Clang with diagnostic ignored
"-Weverything")
Product: gcc
Version: 14.2.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458
--- Comment #6 from Stephen Berry ---
Here is my primary case for disabling the waring:
https://github.com/stephenberry/glaze/blob/main/include/glaze/reflection/to_tuple.hpp
Line 38
This is for the any_t operator T:
template
requir
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458
--- Comment #7 from Stephen Berry ---
I should clarify that GCC doesn't appear to emit this warning after GCC13. So,
in this case I was looking for a solution for older versions of GCC. This
request was written generically, so that the issue cou
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458
--- Comment #4 from Stephen Berry ---
One particular warning I'm trying to silence right now is: `used but never
defined`.
I now see that there is an open issue to disable this particular warning here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118458
--- Comment #10 from Stephen Berry ---
I definitely get warnings in GCC12, but from more complex constexpr code than
your simple example.
Example output:
error: inline function ‘constexpr glz::detail::any_t::operator T() const [with
T = double]