mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
lib: fix compiler warnings with CURL_DISABLE_VERBOSE_STRINGS
Closes https://github.com/curl/curl/pull/4775
This commit is contained in:
parent
e24ea706fb
commit
291ed52122
4 changed files with 15 additions and 10 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 2004 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 2004 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -449,7 +449,9 @@ curl_share_strerror(CURLSHcode error)
|
|||
static const char *
|
||||
get_winsock_error (int err, char *buf, size_t len)
|
||||
{
|
||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||
const char *p;
|
||||
#endif
|
||||
|
||||
if(!len)
|
||||
return NULL;
|
||||
|
|
@ -457,6 +459,7 @@ get_winsock_error (int err, char *buf, size_t len)
|
|||
*buf = '\0';
|
||||
|
||||
#ifdef CURL_DISABLE_VERBOSE_STRINGS
|
||||
(void)err;
|
||||
return NULL;
|
||||
#else
|
||||
switch(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue