diff mbox

[gomp4] enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC

Message ID 53a3cb7b-cb0e-9627-4c20-f551af6d3d70@mentor.com
State New
Headers show

Commit Message

Tom de Vries Feb. 10, 2017, 12:54 p.m. UTC
On 30/01/17 11:18, Thomas Schwinge wrote:
>> +static tree
>> +convert_from_firstprivate_pointer (tree var, bool is_ref, gimple_seq *gs)
>> +{
>> +  tree type = TREE_TYPE (var);
>> +  tree new_type = NULL_TREE;
>> +  tree tmp = NULL_TREE;
>> +  tree inner_type = NULL_TREE;
>     [...]/source-gcc/gcc/omp-low.c: In function 'tree_node* convert_from_firstprivate_pointer(tree, bool, gimple**)':
>     [...]/source-gcc/gcc/omp-low.c:16515:8: warning: unused variable 'inner_type' [-Wunused-variable]

Fixed while bootstrapping gomp-4_0-branch with --enable-werror.

Thanks,
- Tom
diff mbox

Patch

Remove unused var in convert_from_firstprivate_int

2017-02-10  Tom de Vries  <tom@codesourcery.com>

	* omp-low.c (convert_from_firstprivate_int): Remove unused variable.

---
 gcc/omp-low.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index bb2d1fa..0f79533 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -16531,7 +16531,6 @@  convert_from_firstprivate_int (tree var, bool is_ref, gimple_seq *gs)
   tree type = TREE_TYPE (var);
   tree new_type = NULL_TREE;
   tree tmp = NULL_TREE;
-  tree inner_type = NULL_TREE;
 
   gcc_assert (TREE_CODE (var) == MEM_REF);
   var = TREE_OPERAND (var, 0);