]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Silence compiler warnings
authorTobias Burnus <tobias@codesourcery.com>
Wed, 18 Sep 2019 06:44:20 +0000 (08:44 +0200)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:19 +0000 (14:11 +0100)
gcc/
2019-09-17  Tobias Burnus  <tobias@codesourcery.com>

        * gimplify.cc (gomp_oacc_needs_data_present): Remove unused variable.

gcc/ChangeLog.omp
gcc/gimplify.cc

index 8cd46a74aa39668dfc2e780b809e082f8d6a7fe8..fd91f876cc850efb6c4c82257989bb16744f7e77 100644 (file)
@@ -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
index 90e74b5877f1f1e1b2c64a96dfca5d5339163923..76564c69249e46d1c43bfa4ef42b19d30a61c38f 100644 (file)
@@ -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)