aboutsummaryrefslogtreecommitdiff
path: root/libgomp/target.c
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2020-09-15 21:28:40 +0200
committerTobias Burnus <tobias@codesourcery.com>2020-09-15 21:28:40 +0200
commit1b9bdd52037061d7a5bd77d177b060c93c528a5d (patch)
tree32a53b8f3705251db7bfa81df84a844602521650 /libgomp/target.c
parentd1a31689a736cdfb5e7cfa01f1168e338510e63b (diff)
downloadgcc-1b9bdd52037061d7a5bd77d177b060c93c528a5d.zip
gcc-1b9bdd52037061d7a5bd77d177b060c93c528a5d.tar.gz
gcc-1b9bdd52037061d7a5bd77d177b060c93c528a5d.tar.bz2
libgomp/target.c: Silence -Wuninitialized warning
libgomp/ChangeLog: PR fortran/96668 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
Diffstat (limited to 'libgomp/target.c')
-rw-r--r--libgomp/target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/target.c b/libgomp/target.c
index 69cdd9f..ab7ac9b 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -854,7 +854,7 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep,
int always_to_cnt = 0;
if ((kind & typemask) == GOMP_MAP_TO_PSET)
{
- bool has_nullptr;
+ bool has_nullptr = false;
size_t j;
for (j = 0; j < n->tgt->list_count; j++)
if (n->tgt->list[j].key == n)
@@ -1017,7 +1017,7 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep,
== GOMP_MAP_TO_PSET)
{
splay_tree_key k = tgt->list[i].key;
- bool has_nullptr;
+ bool has_nullptr = false;
size_t j;
for (j = 0; j < k->tgt->list_count; j++)
if (k->tgt->list[j].key == k)