https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943
--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Jeffrey Walton from comment #6) > Maybe it could be in effect with `-Wextra`? That would just move the problem somewhere else instead of fixing it. Many people do compile with -Wall -Wextra (like GCC itself). > Enabling Unknown Pragma warnings for #pragma omp under -Wall when the > compiler supports it, coupled with the inability to manage warnings with > 'pragma GCC diagnostic` (Bug #53431), means we just turned OFF -Wall. We are > moving in the wrong direction :( You could always use -Wall -Wno-unknown-pragmas, but yes, fixing PR53431 seems the key here. I hope someone finds time to do that before GCC 6 closes for development.