Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH v5 0/2] Remove false-positive VLAs when using max()

$
0
0
Linus Torvalds writes: (Summary) And no, using "-Werror=3Dvla-larger-than=3D1" doesn't work either, because the moronic compiler continues to think that "vla" is about the _type_, not the code:
_type_, not the code:
t.c: In function =E2=80=98test=E2=80=99:
t.c:6:6: error: argument to variable-length array is too large [-Werror=3Dvla-larger-than=3D]
int array[(1,100)];
int array[(1,100)];
Gcc people are crazy.
Gcc people are crazy.
Is there really no way to just say "shut up about the stupid _syntax_ issue that is entirely irrelevant, and give us the _code_ issue".

Viewing all articles
Browse latest Browse all 1267

Trending Articles