Re: [PATCH] c++: #pragma doesn't disable -Wunused-label [PR113582]

2024-01-26 Thread Jason Merrill
On 1/25/24 20:38, Marek Polacek wrote: Low prio and not a regression. Feel free to ignore till GCC 15. OK for stage 1. Bootstrapped/regtested on x86_64-pc-linux-gnu. -- >8 -- The PR complains that void do_something(){ #pragma GCC diagnostic push #pragma GCC diagnostic ignored

[PATCH] c++: #pragma doesn't disable -Wunused-label [PR113582]

2024-01-25 Thread Marek Polacek
Low prio and not a regression. Feel free to ignore till GCC 15. Bootstrapped/regtested on x86_64-pc-linux-gnu. -- >8 -- The PR complains that void do_something(){ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-label" start:; #pragma GCC diagnostic pop }