Under Fedora 8 at least (and I'm sure others), compiling concordance.c
gives this warning:

concordance.c: In function ‘parse_options’:
concordance.c:589: warning: implicit declaration of function 'strdup'

Theoretically, strdup is prototyped by the include of <string.h>.
However, since concordance is built with -ansi, this prevents string.h
prototyping strdup, since it isn't actually an ANSI standard function.

It looks like one can define things like _SVID_SOURCE to request SVID
extensions, (or other macros for other extensions that also define
strdup), to request a prototype of the function. Or, perhaps switch
-ansi to something else.

The warning isn't a big deal, but I think gcc 4.3 will error in this
situation instead of warning, which will fail concordance builds for
Fedora 9...

-------------------------------------------------------------------------
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

Reply via email to