pali@cpan.org writes: > On Wednesday 02 November 2016 09:32:56 demerphq wrote: >> On 1 Nov 2016 7:37 p.m., <pali@cpan.org> wrote: >> > But, question is: how to prevent to happen this situation again? >> > Compile errors are already handled by travis when making pull >> > requests but looks like this is not enough... >> >> There are build options for gcc that will help you catch most of the >> common patterns that break c89. > > It is possible to configure travis-ci for github encode repository to > use it? Or do you have any other idea of automated tests (ideally for > those platforms which are c89 only)? As as of 5.22, perl itself is compiled with -Werror=declaration-after-statement, but that's not imposed on CPAN modules. If you want Encode to use the same warning and language version as perl core, you can add $Config{ccwarnflags} and $Config{ccstdflags} to CCFLAGS in Makefile.PL if they're defined. -- "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck MathisenThread Previous | Thread Next