[cfe-dev] warning request: partial array initialisation

'Chris Hall' chris.hall.list at highwayman.com
Tue Jun 19 10:01:32 PDT 2012


Chandler Carruth wrote (on Tue 19-Jun-2012 at 17:50 +0100)
>
> On Tue, Jun 19, 2012 at 1:20 AM, Jay Foad <jay.foad at gmail.com> wrote:
....
>>  #define N 8
>>  const int a[N] = { 3, 1, 4, 1, 5, 9, 2 };
>> warning: some but not all array elements initialised
...
> Maybe someone has clever ideas about how to syntactically differentiate
> between these two use cases?

  const int a[N] = { ..... } __attribute__((all_explicitly_initialised))

Chris





More information about the cfe-dev mailing list