|
From: | Matthew Woehlke |
Subject: | Re: coreutils-6.5: yet another C89 problem |
Date: | Tue, 21 Nov 2006 16:30:13 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0 |
Paul Eggert wrote:
Matthew Woehlke writes:Maybe it would help if someone occasionally did builds with gcc's strict-c89 modeEven better, if someone would build CVS coreutils once a day with some random non-GCC c89 compiler. Perhaps you could arrange for that? (The usual idea is that the the people who need a feature volunteer to maintain it. :-)
I'm sure someone in IT (or accounting :-)) would have things to say about that. I build stable versions because having a GNU toolchain helps me do my job with (generally) fewer headaches. Doing nightly builds on computers that are not mine would be another matter; certainly I would need to get permission. I could probably do it on this box, but since it's Linux, it would still be with gcc.
For what it's worth, coreutils-6.5 fails in fts.c with CFLAGS='-ansi -Werror -Wdeclaration-after-statement', which catches the most popular c89-non-conformance issues.
gcc -I. -ansi -Werror -Wdeclaration-after-statement -MT fts.o -MD -MP -MF .deps/fts.Tpo -c -o fts.o fts.c
fts.c: In function `fts_safe_changedir': fts.c:1649: warning: ISO C90 forbids mixed declarations and code make[2]: *** [fts.o] Error 1 -- Matthew "What's Cygwin?" you ask. 'Tis mostly absurd software Concerning hippos.
[Prev in Thread] | Current Thread | [Next in Thread] |