This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allow enabling -pedantic(-errors) (with -std=c89) for the core.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 20 Jun 2014 13:01:53 +0000 (09:01 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 22 Jun 2014 12:14:14 +0000 (08:14 -0400)
commitf049db42ef969d7e9f6b8a1414143e9e0dfdbd62
tree50f4160cd950dab1e24e7fb04eb2cf9d455b9b32
parent31114fe9917b761bdc174de49e81de27555b30e9
Allow enabling -pedantic(-errors) (with -std=c89) for the core.

The core was already -pedantic clean (with default config, with
DEBUGGING almost), cflags just needed some juggling, somewhat
complicated by the logic of -Werror=declaration-after-statement.

Still requires -Dgccansipedantic to enable the -pedantic because
otherwise we do not use things like gcc brace groups and C99 variadic
macros, which are nice.  Also, see below about usedtrace complications.
(the gccansipedantic logic was odd, probably not used for a while.)

Under -DDEBUGGING the -pedantic requires quieting the warnings
about overlong string literals.

Disable -pedantic et al if usedtrace is enabled, it uses too many
non-standard features (and it depends on code generated by an external
framework).
cflags.SH