mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
72f0607488
Seen with llvm 17 on Windows x64. ``` .../curl/tests/server/rtspd.c:136:13: warning: no previous extern declaration for non-static variable 'logdir' [-Wmissing-variable-declarations] 136 | const char *logdir = "log"; | ^ .../curl/tests/server/rtspd.c:136:7: note: declare 'static' if the variable is not intended to be used outside of this translation unit 136 | const char *logdir = "log"; | ^ .../curl/tests/server/rtspd.c:137:6: warning: no previous extern declaration for non-static variable 'loglockfile' [-Wmissing-variable-declarations] 137 | char loglockfile[256]; | ^ .../curl/tests/server/rtspd.c:137:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit 137 | char loglockfile[256]; | ^ .../curl/tests/server/fake_ntlm.c:43:13: warning: no previous extern declaration for non-static variable 'logdir' [-Wmissing-variable-declarations] 43 | const char *logdir = "log"; | ^ .../curl/tests/server/fake_ntlm.c:43:7: note: declare 'static' if the variable is not intended to be used outside of this translation unit 43 | const char *logdir = "log"; | ^ .../curl/src/tool_doswin.c:350:8: warning: possible misuse of comma operator here [-Wcomma] 350 | ++d, ++s; | ^ .../curl/src/tool_doswin.c:350:5: note: cast expression to void to silence warning 350 | ++d, ++s; | ^~~ | (void)( ) ``` ``` .../curl/tests/libtest/lib540.c:146:27: warning: result of comparison 'long' > 2147483647 is always false [-Wtautological-type-limit-compare] 146 | int itimeout = (L > (long)INT_MAX) ? INT_MAX : (int)L; | ~ ^ ~~~~~~~~~~~~~ 1 warning generated. .../curl/tests/libtest/libntlmconnect.c:195:31: warning: result of comparison 'long' > 2147483647 is always false [-Wtautological-type-limit-compare] 195 | int itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; | ~~~~~~~ ^ ~~~~~~~~~~~~~ 1 warning generated. .../curl/tests/libtest/lib591.c:117:31: warning: result of comparison 'long' > 2147483647 is always false [-Wtautological-type-limit-compare] 117 | int itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; | ~~~~~~~ ^ ~~~~~~~~~~~~~ 1 warning generated. .../curl/tests/libtest/lib597.c:99:31: warning: result of comparison 'long' > 2147483647 is always false [-Wtautological-type-limit-compare] 99 | int itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; | ~~~~~~~ ^ ~~~~~~~~~~~~~ 1 warning generated. ``` Seen on macOS Intel: ``` .../curl/tests/server/sws.c:440:64: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] msnprintf(logbuf, sizeof(logbuf), "Got request: %s %.*s HTTP/%d.%d", ~~^~ 1 warning generated. ``` Closes #11925 |
||
---|---|---|
.. | ||
.gitignore | ||
CMakeLists.txt | ||
curl.rc | ||
Makefile.am | ||
Makefile.inc | ||
Makefile.mk | ||
mkhelp.pl | ||
slist_wc.c | ||
slist_wc.h | ||
tool_binmode.c | ||
tool_binmode.h | ||
tool_bname.c | ||
tool_bname.h | ||
tool_cb_dbg.c | ||
tool_cb_dbg.h | ||
tool_cb_hdr.c | ||
tool_cb_hdr.h | ||
tool_cb_prg.c | ||
tool_cb_prg.h | ||
tool_cb_rea.c | ||
tool_cb_rea.h | ||
tool_cb_see.c | ||
tool_cb_see.h | ||
tool_cb_wrt.c | ||
tool_cb_wrt.h | ||
tool_cfgable.c | ||
tool_cfgable.h | ||
tool_dirhie.c | ||
tool_dirhie.h | ||
tool_doswin.c | ||
tool_doswin.h | ||
tool_easysrc.c | ||
tool_easysrc.h | ||
tool_filetime.c | ||
tool_filetime.h | ||
tool_findfile.c | ||
tool_findfile.h | ||
tool_formparse.c | ||
tool_formparse.h | ||
tool_getparam.c | ||
tool_getparam.h | ||
tool_getpass.c | ||
tool_getpass.h | ||
tool_help.c | ||
tool_help.h | ||
tool_helpers.c | ||
tool_helpers.h | ||
tool_hugehelp.c.cvs | ||
tool_hugehelp.h | ||
tool_libinfo.c | ||
tool_libinfo.h | ||
tool_listhelp.c | ||
tool_main.c | ||
tool_main.h | ||
tool_msgs.c | ||
tool_msgs.h | ||
tool_operate.c | ||
tool_operate.h | ||
tool_operhlp.c | ||
tool_operhlp.h | ||
tool_paramhlp.c | ||
tool_paramhlp.h | ||
tool_parsecfg.c | ||
tool_parsecfg.h | ||
tool_progress.c | ||
tool_progress.h | ||
tool_sdecls.h | ||
tool_setopt.c | ||
tool_setopt.h | ||
tool_setup.h | ||
tool_sleep.c | ||
tool_sleep.h | ||
tool_stderr.c | ||
tool_stderr.h | ||
tool_strdup.c | ||
tool_strdup.h | ||
tool_urlglob.c | ||
tool_urlglob.h | ||
tool_util.c | ||
tool_util.h | ||
tool_version.h | ||
tool_vms.c | ||
tool_vms.h | ||
tool_writeout_json.c | ||
tool_writeout_json.h | ||
tool_writeout.c | ||
tool_writeout.h | ||
tool_xattr.c | ||
tool_xattr.h | ||
var.c | ||
var.h |