From 5a580643111ef6081be7b4c7bd1997a5447c903f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 7 Oct 2018 22:30:13 -0700 Subject: 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. --- time/mktime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'time') diff --git a/time/mktime.c b/time/mktime.c index 1404ee9f1f..00f0dec6b4 100644 --- a/time/mktime.c +++ b/time/mktime.c @@ -78,7 +78,7 @@ #include "mktime-internal.h" -#ifndef _LIBC +#if !defined _LIBC && (NEED_MKTIME_WORKING || NEED_MKTIME_WINDOWS) static void my_tzset (void) { -- cgit v1.2.3