checksrc: warn for leading spaces before the preprocessor hash

Fix the 40+ fallouts

Closes #20282
This commit is contained in:
Daniel Stenberg 2026-01-13 09:23:21 +01:00
parent dac98ccfa2
commit f057ed05be
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
10 changed files with 55 additions and 46 deletions

View file

@ -751,11 +751,11 @@ static int myssh_in_SFTP_QUOTE_STATVFS(struct Curl_easy *data,
return SSH_OK;
}
else if(statvfs) {
#ifdef _MSC_VER
#define CURL_LIBSSH_VFS_SIZE_MASK "I64u"
#else
#define CURL_LIBSSH_VFS_SIZE_MASK PRIu64
#endif
#ifdef _MSC_VER
#define CURL_LIBSSH_VFS_SIZE_MASK "I64u"
#else
#define CURL_LIBSSH_VFS_SIZE_MASK PRIu64
#endif
CURLcode result = CURLE_OK;
char *tmp = curl_maprintf("statvfs:\n"
"f_bsize: %" CURL_LIBSSH_VFS_SIZE_MASK "\n"