This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Merge branch 'warnings' into blead
authorKarl Williamson <khw@cpan.org>
Fri, 12 Apr 2019 20:04:05 +0000 (14:04 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 12 Apr 2019 20:04:05 +0000 (14:04 -0600)
commitd0d17dab10b72ef18009624bd0b0819f5c20d554
tree17b605fd6e5d3cf63a1ee7680d02f6d7167ced94
parentdfba4714a9dc4c35123b4df0a5e1721ccb081d97
parent10be8dab8d65a6acbedbff4f9285afc7cd30e8e6
Merge branch 'warnings' into blead

These several commits silence warnings specific to Microsoft compilers.
They are bogus warnings as far as we can determine, but persist through
many versions of the compilers.

commit 6879a07bc8b8e75c35d0e3b765ea718cc1c7aeb2
*Author: Tomasz Konojacki <me@xenu.pl>
 Date:   Thu Apr 4 22:39:38 2019 +0200

     implement diagnostics ignore/restore macros for Visual C++

gave the easy infrastructure to turn off such warnings, but adding lines
to take advantage of this makes the code harder to read, and we came up
with alternative methods to shut the compiler up that are less
intrusive, involving casting, and subtracting from 0 instead of a unary
minus, that should be valid across platforms.

There were several other warnings I left in, because it would have
required more research than I have time for right now to be sure that
they are bogus.