This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
prevent warning noise on mingw-64 builds
authorTony Cook <tony@develop-help.com>
Tue, 1 Sep 2015 05:17:08 +0000 (15:17 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 1 Sep 2015 05:17:08 +0000 (15:17 +1000)
The following was produced for every non-miniperl object built,
including for XS modules and the test builds done by
ExtUtils::MakeMaker etc

..\iperlsys.h:640:66: warning: 'struct utimbuf' declared inside parameter list
 typedef int  (*LPLIOUtime)(struct IPerlLIO*, const char*, struct utimbuf*);
                                                                  ^
..\iperlsys.h:640:66: warning: its scope is only this definition or declaration,
 which is probably not what you want

iperlsys.h

index 57160e0..3aee24f 100644 (file)
@@ -600,6 +600,8 @@ struct IPerlEnvInfo
 
 #if defined(PERL_IMPLICIT_SYS)
 
+struct utimbuf; /* prevent gcc warning about the use below */
+
 /* IPerlLIO            */
 struct IPerlLIO;
 struct IPerlLIOInfo;