On 14/11/12 14:31, Tim Ruehsen wrote: > If non-c89 stuff triggers warnings/errors on a c89 compiler or not is just > guessing. Some might work, others not. > But to draw a clear line regarding c89: why not taking gcc -std=c89 as > reference ? Try that and realize that Wget is not compilable... > [But it should just be a couple of hours to fix it.]
I tried it, and it only needs a one line change to be compilable :) Remember to run CC='gcc -std=c89' ./configure first, or otherwise you're using a configuration tailed to another compiler with a c89 one. If you want warnings on some gnu extensions used there, you can use: CC='gcc -std=c89 -pedantic -DNO_C_CTYPE_MACROS' ./configure Although it still has several warnings: Warning: ISO C90 does not support 'long long' (printf-args.h and vasnprintf.c) warning: ISO C90 forbids mixed declarations and code (several files) warning: ISO C forbids conversion of object pointer to function pointer type (main.c)
