From 4d0c87b775ebcde1bb74a58c8db664a073fb9310 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 1 Sep 2015 15:17:08 +1000 Subject: [PATCH] prevent warning noise on mingw-64 builds 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iperlsys.h b/iperlsys.h index 57160e0..3aee24f 100644 --- a/iperlsys.h +++ b/iperlsys.h @@ -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; -- 1.8.3.1