On Tue, 23 Aug 2016, Martin Winter wrote:
How about changing the build system (configure.ac I assume) to just use
always C99 mode?
It does. It sets that when it can.
The thing is, if you supply a CFLAGS then that always overrides what was
set - and I think that's automake, so nothing we can do in configure.ac.
And it seems some of the CI system runs stuff that does that. Mostly in
building packages. So it'll do the build, that works, then build
packages - which starts a build from scratch in the ones I looked at -
and some of those set CFLAGS but don't set -std=c99.
Suggestion: Just do make dist and build the package from that. The
package build tests the build, so a build before that isn't necessary -
just adds further RTT to getting the patches through the CI.
As for CFLAGS in some of the package systems, not sure. Debian seems one
as do some of the BSDs. Probably GCC version related too? (Maybe newer
gccs don't error on C99 'for (<declaration>..) by default?).
regards,
--
Paul Jakma | [email protected] | @pjakma | Key ID: 0xD86BF79464A2FF6A
Fortune:
Never volunteer for anything.
-- Lackland
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev