[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more warnings patrol
From: |
Bruno Haible |
Subject: |
Re: more warnings patrol |
Date: |
Sat, 31 Oct 2009 01:43:47 +0100 |
User-agent: |
KMail/1.9.9 |
Hi Eric,
> --- a/lib/mktime.c
> +++ b/lib/mktime.c
> @@ -147,6 +147,9 @@ const unsigned short int __mon_yday[2][13] =
> # undef __localtime_r
> # define __localtime_r localtime_r
> # define __mktime_internal mktime_internal
> +time_t __mktime_internal (struct tm *,
> + struct tm * (*) (time_t const *, struct tm *),
> + time_t *);
> #endif
>
> /* Return an integer value measuring (YEAR1-YDAY1 HOUR1:MIN1:SEC1) -
Here gcc was essentially complaining that 'mktime_internal' is not
declared in a header file. Such a header file would be appropriate,
to ensure that the declarations in mktime.c and timegm.c don't run
out of sync.
How about moving this declaration to a new file mktime-internal.h?
Bruno