From: Daniel Stenberg Date: Thu, 5 Feb 2004 09:37:46 +0000 (+0000) Subject: prevent warning from that picky MIPSpro compiler X-Git-Tag: curl-7_11_1~407 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c7cb0c10f41620003b81e1c53c08fc760ea3da0;p=thirdparty%2Fcurl.git prevent warning from that picky MIPSpro compiler --- diff --git a/lib/version.c b/lib/version.c index eaf20c0cd4..41b00aa361 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