aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2024-02-23 13:12:48 +0100
committerTobias Burnus <tburnus@baylibre.com>2024-02-23 13:12:48 +0100
commit9266d9fce2ca8ec704b932e8af7ab04432772c44 (patch)
tree3706085052b83ed3e333ee193ebdc57b35cbb210 /gcc
parent016c4eed368b80a97101f6156ed99e4c5474fbb7 (diff)
downloadgcc-9266d9fce2ca8ec704b932e8af7ab04432772c44.zip
gcc-9266d9fce2ca8ec704b932e8af7ab04432772c44.tar.gz
gcc-9266d9fce2ca8ec704b932e8af7ab04432772c44.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/openmp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/openmp.cc b/gcc/fortran/openmp.cc
index 77f6e17..38de602 100644
--- a/gcc/fortran/openmp.cc
+++ b/gcc/fortran/openmp.cc
@@ -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);
}