From fe7e48bcf56ae40ce8a13fe175e343df04e4410f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 18 Aug 2014 07:42:39 -0700 Subject: [PATCH] * localtime.c (tzsetwall): Define only if STD_INSPIRED. This removes lint in the !STD_INSPIRED case, as this function is now unused in that case. --- localtime.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/localtime.c b/localtime.c index 1df3fba..1c73960 100644 --- a/localtime.c +++ b/localtime.c @@ -1166,13 +1166,7 @@ tzsetwall_unlocked(void) lcl_is_set = -1; } -#ifndef STD_INSPIRED -/* -** A non-static declaration of tzsetwall in a system header file -** may cause a warning about this upcoming static declaration... -*/ -static -#endif /* !defined STD_INSPIRED */ +#ifdef STD_INSPIRED void tzsetwall(void) { @@ -1181,6 +1175,7 @@ tzsetwall(void) tzsetwall_unlocked(); unlock(); } +#endif static void tzset_unlocked(void)