mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
include: mask computed auth/proto bitmasks to 32 bits
GCC 15.2 warns when assigning computed "all" bitmask macros to 32-bit flag types because negated masks expand to the full width of unsigned long/long on 64-bit platforms. Mask these macros to a 32-bit domain so they do not set high bits and avoid -Woverflow/-Wconversion warnings in callers. Reported-by: Patrick Monnerat Fixes #20242 Closes #20416
This commit is contained in:
parent
2f8c9812b1
commit
9b20a672b8
3 changed files with 9 additions and 6 deletions
|
|
@ -1389,7 +1389,7 @@ struct UserDefined {
|
|||
#ifdef USE_SSH
|
||||
curl_sshkeycallback ssh_keyfunc; /* key matching callback */
|
||||
void *ssh_keyfunc_userp; /* custom pointer to callback */
|
||||
int ssh_auth_types; /* allowed SSH auth types */
|
||||
uint32_t ssh_auth_types; /* allowed SSH auth types */
|
||||
uint32_t new_directory_perms; /* when creating remote dirs */
|
||||
#endif
|
||||
uint32_t new_file_perms; /* when creating remote files */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue