https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943
--- Comment #6 from Jeffrey Walton <noloader at gmail dot com> --- (In reply to Manuel López-Ibáñez from comment #5) > ... > For what is worth, I understand the point by Andrew that without -fopenmp, > the #pragmas are effectively ignored, thus the warning seems useful. Perhaps > it would be more useful a specific -Wopenmp-pragmas that says: > Maybe it could be in effect with `-Wextra`? 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 :(