Having more than one automatic local breaks the header generation

Bug #929484 reported by Pekka Jääskeläinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pocl
Fix Released
Critical
Pekka Jääskeläinen

Bug Description

<stdin>:8:24: warning: excess elements in scalar initializer
unsigned _local_size = _test_kernel_LOCAL_SIZE;
                       ^~~~~~~~~~~~~~~~~~~~~~~
./.clckQfN7fq/kernel_header.h:5:37: note: expanded from macro '_test_kernel_LOCAL_SIZE'
#define _test_kernel_LOCAL_SIZE {4, 8}

due to

#if _${kernel}_NUM_LOCALS != 0
unsigned _local_size = _${kernel}_LOCAL_SIZE;
#endif

in pocl-kernel.in.

It should assign the sizes to an array, not a scalar.

Related branches

Changed in pocl:
assignee: nobody → Pekka Jääskeläinen (pekka-jaaskelainen)
Changed in pocl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.