This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence time64.c build warning
authorJerry D. Hedden <jdhedden@cpan.org>
Tue, 13 Jan 2009 15:59:28 +0000 (15:59 +0000)
committerSteve Hay <SteveHay@planit.com>
Tue, 13 Jan 2009 16:23:28 +0000 (16:23 +0000)
Silence the following build warning:
   time64.c:169: warning: 'check_tm' defined but not used

Message-ID: <1ff86f510901081219q4f5f25a3od89c4e5ac03e8664@mail.gmail.com>

time64.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5783d5a..0f58812
--- a/time64.c
+++ b/time64.c
@@ -165,6 +165,7 @@ Time64_T timegm64(struct TM *date) {
 }
 
 
 }
 
 
+#ifdef DEBUGGING
 static int check_tm(struct TM *tm)
 {
     /* Don't forget leap seconds */
 static int check_tm(struct TM *tm)
 {
     /* Don't forget leap seconds */
@@ -196,6 +197,7 @@ static int check_tm(struct TM *tm)
 
     return 1;
 }
 
     return 1;
 }
+#endif
 
 
 /* The exceptional centuries without leap years cause the cycle to
 
 
 /* The exceptional centuries without leap years cause the cycle to