From: Daniel Stenberg Date: Thu, 5 Feb 2004 09:37:46 +0000 (+0000) Subject: prevent warning from that picky MIPSpro compiler X-Git-Tag: cares-1_1_0~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c7cb0c10f41620003b81e1c53c08fc760ea3da0;p=curl prevent warning from that picky MIPSpro compiler --- diff --git a/lib/version.c b/lib/version.c index eaf20c0cd..41b00aa36 100644 --- a/lib/version.c +++ b/lib/version.c @@ -95,15 +95,15 @@ char *curl_version(void) { static char version[200]; char *ptr; - long num; strcpy(version, LIBCURL_NAME "/" LIBCURL_VERSION ); ptr=strchr(version, '\0'); #ifdef USE_SSLEAY - getssl_version(ptr, &num); - ptr=strchr(version, '\0'); -#else - (void)num; /* no compiler warning please */ + { + long num; + getssl_version(ptr, &num); + ptr=strchr(version, '\0'); + } #endif #ifdef HAVE_KRB4