]> granicus.if.org Git - curl/commitdiff
prevent warning from that picky MIPSpro compiler
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 Feb 2004 09:37:46 +0000 (09:37 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Feb 2004 09:37:46 +0000 (09:37 +0000)
lib/version.c

index eaf20c0cd43995f8695225b05489e6c7bebfe3f5..41b00aa361d36dfd82190d55db246657e1b0c113 100644 (file)
@@ -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