mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
tidy-up: delete, comment or scope C macros reported unused
To reduce the number `-Wunused-macro` compiler warnings: - delete unused macros. - comment out unused macro that are part of a set. - move macros into the scope they are used. This may be useful to enable by default, but there are tricky cases that I didn't manage to fix and paused the effort. E.g. internal features checks in `openssl.c`. There is more, once those are fixed. Closes #16279
This commit is contained in:
parent
edd013326d
commit
784a8ec2c1
36 changed files with 86 additions and 131 deletions
|
|
@ -45,19 +45,13 @@
|
|||
#include <limits.h>
|
||||
|
||||
#define CURL_MASK_UCHAR ((unsigned char)~0)
|
||||
#define CURL_MASK_SCHAR (CURL_MASK_UCHAR >> 1)
|
||||
|
||||
#define CURL_MASK_USHORT ((unsigned short)~0)
|
||||
#define CURL_MASK_SSHORT (CURL_MASK_USHORT >> 1)
|
||||
|
||||
#define CURL_MASK_UINT ((unsigned int)~0)
|
||||
#define CURL_MASK_SINT (CURL_MASK_UINT >> 1)
|
||||
|
||||
#define CURL_MASK_ULONG ((unsigned long)~0)
|
||||
#define CURL_MASK_SLONG (CURL_MASK_ULONG >> 1)
|
||||
|
||||
#define CURL_MASK_UCOFFT ((unsigned CURL_TYPEOF_CURL_OFF_T)~0)
|
||||
#define CURL_MASK_SCOFFT (CURL_MASK_UCOFFT >> 1)
|
||||
|
||||
#define CURL_MASK_USIZE_T ((size_t)~0)
|
||||
#define CURL_MASK_SSIZE_T (CURL_MASK_USIZE_T >> 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue