Re:A Guide to Undefined Behavior in C and C++
by fluoridation on Friday August 18, 2023 @03:05AM
(#37172226)
I was going to comment that GCC doesn't, but it seems it was added as some point since the last time I checked. I know at one time GCC had as a policy not to allow doing that.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wwhatever"
// code
#pragma clang diagnostic pop