Phil Dibowitz wrote: > Stephen Warren wrote: >> Stephen Warren wrote: >>> I propose we replace "-ansi -pedantic-errors" with "-std=c99". >> Sorry, just remove "-ansi -pedantic-errors" and don't add "-std=c99"; >> the variadic macro works with -std=c99, but the strdup prototype still >> isn't present unless we just remove all the standard-selection options. > > Nope, -ansi is an alias for -std=c99 which DOES NOT error on stuff like > variables not at the top. -pedantic-errors is required.
-ansi is NOT -std=c99. ANSI C (1989) was standardized way before C99 (1999). See the build logs below. See http://en.wikipedia.org/wiki/C_%28programming_language%29 [EMAIL PROTECTED] concordance]$ gcc -DHAVE_CONFIG_H -I. -Wall -ansi -pedantic-errors -ggdb -I../libconcord -MT concordance-concordance.o -MD -MP -MF .deps/concordance-concordance.Tpo -c -o concordance-concordance.o concordance.c In file included from concordance.c:21: ../libconcord/libconcord.h:47:19: error: anonymous variadic macros were introduced in C99 concordance.c: In function ‘parse_options’: concordance.c:589: warning: implicit declaration of function ‘strdup’ [EMAIL PROTECTED] concordance]$ gcc -DHAVE_CONFIG_H -I. -Wall -std=c99 -pedantic-errors -ggdb -I../libconcord -MT concordance-concordance.o -MD -MP -MF .deps/concordance-concordance.Tpo -c -o concordance-concordance.o concordance.c concordance.c: In function ‘parse_options’: concordance.c:589: warning: implicit declaration of function ‘strdup’ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel