https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95024
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #pragma GCC diagnostic ignored "-Wconversion" is what you want. If you want it the warning still but not erroring out you use: #pragma GCC diagnostic warning "-Wconversion" This mentioned in the documentation too. https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas