diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-04-05 19:57:29 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-04-11 21:08:44 +0200 |
commit | d1b5cf830bfe169745721b21245d2217d2c2453e (patch) | |
tree | 3f230490e3ba67789b84f94aebac29370b81092f /CMake | |
parent | bb0b10135caf58f82ee9e9d38f400880a7e5c9cc (diff) | |
download | curl-d1b5cf830bfe169745721b21245d2217d2c2453e.tar.gz |
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
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/CurlTests.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c index 0756b2a31..848e0d5d7 100644 --- a/CMake/CurlTests.c +++ b/CMake/CurlTests.c @@ -240,6 +240,7 @@ int main() #ifndef inet_ntoa_r func_type func; func = (func_type)inet_ntoa_r; + (void)func; #endif return 0; } @@ -255,6 +256,7 @@ int main() #ifndef inet_ntoa_r func_type func; func = (func_type)&inet_ntoa_r; + (void)func; #endif return 0; } @@ -582,7 +584,9 @@ int fun2(int arg1, int arg2) { int main() { int res3 = c99_vmacro3(1, 2, 3); + (void)res3; int res2 = c99_vmacro2(1, 2); + (void)res2; return 0; } #endif |