https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109912
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-20 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So it is all of the "meta"-options which have this issue as shown by: ``` #pragma GCC diagnostic warning "-Wunused" #pragma GCC diagnostic ignored "-Wunused" static int f() {return 0;} ``` Confirmed.