diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-18 20:13:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-18 20:13:54 +0000 |
commit | d10508e08c56bd8330b839b13a4fe215c8cf2aac (patch) | |
tree | 964d75587ec64a07ce7bbe1a4a85071473920293 /lib | |
parent | 630995f40a799b6fbd7ae9cb063ea021c701e91d (diff) |
prevent compiler warnings with relly picky compiler options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getdate.y | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index 1ade36512..10acdba88 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -83,6 +83,10 @@ #include "memdebug.h" #endif +#ifndef YYMAXDEPTH +#define YYMAXDEPTH 0 +#endif + #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif @@ -1058,8 +1062,8 @@ curl_getdate (const char *p, const time_t *now) struct tm *gmt; #ifdef HAVE_GMTIME_R /* thread-safe version */ - struct tm keeptime; - gmt = (struct tm *)gmtime_r(&Start, &keeptime); + struct tm keeptime2; + gmt = (struct tm *)gmtime_r(&Start, &keeptime2); #else gmt = gmtime(&Start); #endif |