]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
mktime fix for Gnulib + coreutils
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Oct 2018 05:30:13 +0000 (22:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Oct 2018 18:28:25 +0000 (11:28 -0700)
[BZ#23745]
This fix affects only Gnulib.  Problem discovered when
mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
* time/mktime.c:
(my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
Do not define since it is not used.  Defining an unused static
function prompts a warning from GCC when Coreutils is configured
with --enable-gcc-warnings.

ChangeLog
time/mktime.c

index af0f15b468eefa0dd8f0451d4f02900711559ef9..cadf8613f35113502fba903f806b5382714e022d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       mktime fix for Gnulib + coreutils
+       [BZ#23745]
+       This fix affects only Gnulib.  Problem discovered when
+       mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
+       * time/mktime.c:
+       (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
+       Do not define since it is not used.  Defining an unused static
+       function prompts a warning from GCC when Coreutils is configured
+       with --enable-gcc-warnings.
+
 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
 
        * benchtests/scripts/compare_bench.py (main): set float type on
index 1404ee9f1ff653e228539b5cbfbf069cf6887e05..00f0dec6b405aca9f847d3fa138ab0735c20854a 100644 (file)
@@ -78,7 +78,7 @@
 
 #include "mktime-internal.h"
 
-#ifndef _LIBC
+#if !defined _LIBC && (NEED_MKTIME_WORKING || NEED_MKTIME_WINDOWS)
 static void
 my_tzset (void)
 {