Sparse doesn't support the C99 construct `for (int i = expr; ....)` properly. for example, the following C code: #include <stdlib.h> int main(void) { for (int i = atoi("12"); i < 10; i++); return 0; } make sparse spit: $ sparse -Wall test.c test.c:5:22: warning: call with no type! In fact sparse doesn't support 'expr' to be a complex enough expression (expressions that can be folded work, but not any other afaict). I assume something has to be done in parser.c, but I'm not really sure it's the sole place… -- ·O· Pierre Habouzit ··O madcoder@xxxxxxxxxx OOO http://www.madism.org
Attachment:
pgpxJgqGEHJAq.pgp
Description: PGP signature