1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

prevent compiler warnings with relly picky compiler options

This commit is contained in:
Daniel Stenberg 2003-10-18 20:13:54 +00:00
parent 630995f40a
commit d10508e08c

View File

@ -83,6 +83,10 @@
#include "memdebug.h" #include "memdebug.h"
#endif #endif
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 0
#endif
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
# define __attribute__(x) # define __attribute__(x)
#endif #endif
@ -1058,8 +1062,8 @@ curl_getdate (const char *p, const time_t *now)
struct tm *gmt; struct tm *gmt;
#ifdef HAVE_GMTIME_R #ifdef HAVE_GMTIME_R
/* thread-safe version */ /* thread-safe version */
struct tm keeptime; struct tm keeptime2;
gmt = (struct tm *)gmtime_r(&Start, &keeptime); gmt = (struct tm *)gmtime_r(&Start, &keeptime2);
#else #else
gmt = gmtime(&Start); gmt = gmtime(&Start);
#endif #endif