]> granicus.if.org Git - curl/commitdiff
prevent compiler warnings with relly picky compiler options
authorDaniel Stenberg <daniel@haxx.se>
Sat, 18 Oct 2003 20:13:54 +0000 (20:13 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Oct 2003 20:13:54 +0000 (20:13 +0000)
lib/getdate.y

index 1ade365127565ab5ad174a1513a46113661304da..10acdba88d1d79647703da2d8c567b342e3eeaa7 100644 (file)
 #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