tgt->tgt_end = 0;
tgt->to_free = NULL;
- bool is_tgt_unmapped = gomp_remove_var (acc_dev, n);
+ bool is_tgt_unmapped __attribute__((unused)) = gomp_remove_var (acc_dev, n);
assert (is_tgt_unmapped);
gomp_mutex_unlock (&acc_dev->lock);
if (n->tgt->list[l_i].key
&& !n->tgt->list[l_i].is_attach)
++num_mappings;
- bool is_tgt_unmapped = gomp_remove_var (acc_dev, n);
+ bool is_tgt_unmapped __attribute__((unused))
+ = gomp_remove_var (acc_dev, n);
assert (is_tgt_unmapped || num_mappings > 1);
}
}
find_group_last (int pos, size_t mapnum, size_t *sizes, unsigned short *kinds)
{
unsigned char kind0 = kinds[pos] & 0xff;
- int first_pos = pos;
+ int first_pos __attribute__((unused)) = pos;
switch (kind0)
{
/* Let 'goacc_map_vars' -> 'gomp_map_vars_internal' handle
this. */
gomp_mutex_unlock (&acc_dev->lock);
- struct target_mem_desc *tgt_
+ struct target_mem_desc *tgt_ __attribute__((unused))
= goacc_map_vars (acc_dev, aq, groupnum, &hostaddrs[i], NULL,
&sizes[i], &kinds[i], true,
GOMP_MAP_VARS_ENTER_DATA);
tgt->list[i].length);
if (do_remove)
{
- struct target_mem_desc *k_tgt = k->tgt;
- bool is_tgt_unmapped = gomp_remove_var (devicep, k);
+ struct target_mem_desc *k_tgt __attribute__((unused)) = k->tgt;
+ bool is_tgt_unmapped __attribute__((unused))
+ = gomp_remove_var (devicep, k);
/* It would be bad if TGT got unmapped while we're still iterating
over its LIST_COUNT, and also expect to use it in the following
code. */