From: Fabian Keil Date: Tue, 19 May 2009 17:48:58 +0000 (+0000) Subject: Fix clang warning: Value stored to 'timeptr' is never read. X-Git-Tag: v_3_0_13~79 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=a92f546ed927404ec8391bd25376bc85fe3e9400;p=privoxy.git Fix clang warning: Value stored to 'timeptr' is never read. --- diff --git a/parsers.c b/parsers.c index a4c9868c..48845d78 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.157 2009/05/16 13:27:20 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.158 2009/05/19 17:27:05 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -2277,13 +2277,13 @@ static jb_err server_last_modified(struct client_state *csp, char **header) log_error(LOG_LEVEL_HEADER, "Randomizing: %s", *header); now = time(NULL); #ifdef HAVE_GMTIME_R - timeptr = gmtime_r(&now, &gmt); + gmtime_r(&now, &gmt); #elif FEATURE_PTHREAD privoxy_mutex_lock(&gmtime_mutex); - timeptr = gmtime(&now); + gmtime(&now); privoxy_mutex_unlock(&gmtime_mutex); #else - timeptr = gmtime(&now); + gmtime(&now); #endif if (JB_ERR_OK != parse_header_time(header_time, &last_modified)) {