public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] Silence compiler warnings
@ 2022-06-29 14:36 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2022-06-29 14:36 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cfa16d11d940f976fd0c22c62f4fbe0639780916

commit cfa16d11d940f976fd0c22c62f4fbe0639780916
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed Sep 18 08:44:20 2019 +0200

    Silence compiler warnings
    
    gcc/
    2019-09-17  Tobias Burnus  <tobias@codesourcery.com>
    
            * gimplify.cc (gomp_oacc_needs_data_present): Remove unused variable.

Diff:
---
 gcc/ChangeLog.omp | 4 ++++
 gcc/gimplify.cc   | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index 8cd46a74aa3..fd91f876cc8 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,3 +1,7 @@
+2019-09-17  Tobias Burnus  <tobias@codesourcery.com>
+
+	* gimplify.cc (gomp_oacc_needs_data_present): Remove unused variable.
+
 2019-09-06  Julian Brown  <julian@codesourcery.com>
 
 	* gimplify.cc (gimplify_omp_for): Use for_stmt in call to
diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
index 90e74b5877f..76564c69249 100644
--- a/gcc/gimplify.cc
+++ b/gcc/gimplify.cc
@@ -11171,7 +11171,6 @@ static oacc_array_mapping_info *
 gomp_oacc_needs_data_present (tree decl)
 {
   gimplify_omp_ctx *ctx = NULL;
-  bool ref_p = TREE_CODE (TREE_TYPE (decl)) == REFERENCE_TYPE;
 
   if (gimplify_omp_ctxp->region_type != ORT_ACC_PARALLEL
       && gimplify_omp_ctxp->region_type != ORT_ACC_KERNELS)


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

only message in thread, other threads:[~2022-06-29 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 14:36 [gcc/devel/omp/gcc-12] Silence compiler warnings Kwok Yeung

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).