Re: Arrays of variable length

2017-03-09 Thread Måns Rullgård
gt;>>>>> > 'warning: Variable length array is used' >>>>>>>>>> > >>>>>>>>>> > Prior to c99 this was not allowed but lgcc (c99) doesn't have >>>>>>>>>> > problem >>>

Re: Arrays of variable length

2017-03-09 Thread Måns Rullgård
x27;t have problem >>>>>>>> > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. >>>>>>>> > And also Linux kernel compilation with W=1 doesn't complain. >>>>>>>> > >>>>>>>>

Re: Arrays of variable length

2017-03-09 Thread Tomas Winkler
>>>>> > >>>>>>>>> > Prior to c99 this was not allowed but lgcc (c99) doesn't have >>>>>>>>> > problem >>>>>>>>> > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. >&

Re: Arrays of variable length

2017-03-09 Thread Tomas Winkler
gt;>>>>>> > 'warning: Variable length array is used' >>>>>>> > >>>>>>> > Prior to c99 this was not allowed but lgcc (c99) doesn't have problem >>>>>>> > with that https://gcc.gnu.org/onl

Re: Arrays of variable length

2017-03-09 Thread Måns Rullgård
; > >>>>>> > Prior to c99 this was not allowed but lgcc (c99) doesn't have problem >>>>>> > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. >>>>>> > And also Linux kernel compilation with W=1 doesn't comp

Re: Arrays of variable length

2017-03-09 Thread Tomas Winkler
gcc (c99) doesn't have problem >>>>> > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. >>>>> > And also Linux kernel compilation with W=1 doesn't complain. >>>>> > >>>>> > Since sparse is used extensiv

Re: Arrays of variable length

2017-03-09 Thread Måns Rullgård
ariable-Length.html. >>>> > And also Linux kernel compilation with W=1 doesn't complain. >>>> > >>>> > Since sparse is used extensively would like to ask what is the correct >>>> > usage of arrays of variable length >>>> >

Re: Arrays of variable length

2017-03-09 Thread Tomas Winkler
ompilation with W=1 doesn't complain. >>> > >>> > Since sparse is used extensively would like to ask what is the correct >>> > usage of arrays of variable length >>> > within Linux Kernel. >>> >>> Variable-length arrays are a very bad id

Re: Arrays of variable length

2017-03-05 Thread Måns Rullgård
t; Prior to c99 this was not allowed but lgcc (c99) doesn't have problem >> > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. >> > And also Linux kernel compilation with W=1 doesn't complain. >> > >> > Since sparse is used exte

Re: Arrays of variable length

2017-03-05 Thread Richard Weinberger
7; >> > >> > Prior to c99 this was not allowed but lgcc (c99) doesn't have problem >> > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. >> > And also Linux kernel compilation with W=1 doesn't complain. >> > >> >

Re: Arrays of variable length

2017-03-05 Thread Henrique de Moraes Holschuh
have problem > > with that https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. > > And also Linux kernel compilation with W=1 doesn't complain. > > > > Since sparse is used extensively would like to ask what is the correct > > usage of arrays of variable length &

Re: Arrays of variable length

2017-03-05 Thread Måns Rullgård
gth.html. > And also Linux kernel compilation with W=1 doesn't complain. > > Since sparse is used extensively would like to ask what is the correct > usage of arrays of variable length > within Linux Kernel. Variable-length arrays are a very bad idea. Don't use them, eve

Re: Arrays of variable length

2017-03-05 Thread Al Viro
ttps://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html. > And also Linux kernel compilation with W=1 doesn't complain. > > Since sparse is used extensively would like to ask what is the correct > usage of arrays of variable length > within Linux Kernel. That depends. For structure me

Arrays of variable length

2017-03-05 Thread Tomas Winkler
oesn't complain. Since sparse is used extensively would like to ask what is the correct usage of arrays of variable length within Linux Kernel. Thanks Tomas