https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943

--- Comment #11 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
I think having -Wignored-pragma-omp would be useful:

1. It is useful to have a warning that warns that you need to use -fopenmp for
#pragma omp to have an effect.

2. However, it is very common to want to compile code with and without
-fopenmp.

3. Using -Wno-unknown-pragma means that any typos in pragmas (#pragma oomp)
will not be detected.

-Wignored-pragma-omp could say something like:

warming: ‘#pragma omp for’ ignored without '-fopenmp'

Reply via email to