Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning
Checks
Commit Message
When checking something else, I noticed that there was one warning in
openmp.cc that did not use OPT_Wopenmp.
I intent to commit the attached patch later today as obvious.
Tobias
Comments
On Fri, Feb 23, 2024 at 12:25:54PM +0100, Tobias Burnus wrote:
> When checking something else, I noticed that there was one warning in
> openmp.cc that did not use OPT_Wopenmp.
>
> I intent to commit the attached patch later today as obvious.
>
> Tobias
> Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning
>
> gcc/fortran/ChangeLog:
>
> * openmp.cc (gfc_match_omp_depobj): Use OPT_Wopenmp
> as warning category in gfc_warning.
LGTM.
Jakub
Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning
gcc/fortran/ChangeLog:
* openmp.cc (gfc_match_omp_depobj): Use OPT_Wopenmp
as warning category in gfc_warning.
gcc/fortran/openmp.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -4768,8 +4768,8 @@ gfc_match_omp_depobj (void)
if (gfc_match (" ( %v ) ", &destroyobj) == MATCH_YES)
{
if (destroyobj->symtree != depobj->symtree)
- gfc_warning (0, "The same depend object should be used as DEPOBJ "
- "argument at %L and as DESTROY argument at %L",
+ gfc_warning (OPT_Wopenmp, "The same depend object should be used as"
+ " DEPOBJ argument at %L and as DESTROY argument at %L",
&depobj->where, &destroyobj->where);
gfc_free_expr (destroyobj);
}