public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9153] Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning
@ 2024-02-23 12:14 Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2024-02-23 12:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9266d9fce2ca8ec704b932e8af7ab04432772c44

commit r14-9153-g9266d9fce2ca8ec704b932e8af7ab04432772c44
Author: Tobias Burnus <tburnus@baylibre.com>
Date:   Fri Feb 23 13:12:48 2024 +0100

    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.

Diff:
---
 gcc/fortran/openmp.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/fortran/openmp.cc b/gcc/fortran/openmp.cc
index 77f6e1732f92..38de60238c0e 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);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-23 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-23 12:14 [gcc r14-9153] Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).