diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/version.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c index 21939d925..510c20afc 100644 --- a/lib/version.c +++ b/lib/version.c @@ -102,7 +102,12 @@ char *curl_version(void) { static char version[200]; char *ptr=version; + /* to prevent compier warnings, we only declare len if we have code + that uses it */ +#if defined(USE_SSLEAY) || defined(HAVE_LIBZ) || defined(USE_ARES) || \ + defined(USE_LIBIDN) int len; +#endif size_t left = sizeof(version); strcpy(ptr, LIBCURL_NAME "/" LIBCURL_VERSION ); ptr=strchr(ptr, '\0'); |