mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:33:37 +03:00
build: fix Codacy/CppCheck warnings
- remove unused variables - declare conditionally used variables conditionally - suppress unused variable warnings in the CMake tests - remove dead variable stores - consistently use WIN32 macro to detect Windows Closes https://github.com/curl/curl/pull/3739
This commit is contained in:
parent
bb0b10135c
commit
d1b5cf830b
16 changed files with 24 additions and 17 deletions
|
|
@ -114,7 +114,7 @@ typedef void CURLSH;
|
|||
|
||||
#ifdef CURL_STATICLIB
|
||||
# define CURL_EXTERN
|
||||
#elif defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__) || \
|
||||
#elif defined(WIN32) || defined(__SYMBIAN32__) || \
|
||||
(__has_declspec_attribute(dllexport) && \
|
||||
__has_declspec_attribute(dllimport))
|
||||
# if defined(BUILDING_LIBCURL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue