mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
No longer support Z as a flag to print size_t, it isn't used by libcurl
and I doubt anyone else uses it. Better preprocessor magic for the O flag (for curl_off_t printing) to prevent compiler warnings.
This commit is contained in:
parent
7173a0f7b6
commit
b2e1bf7e7d
@ -374,19 +374,20 @@ static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list a
|
|||||||
case 'q':
|
case 'q':
|
||||||
flags |= FLAGS_LONGLONG;
|
flags |= FLAGS_LONGLONG;
|
||||||
break;
|
break;
|
||||||
|
#if 0
|
||||||
case 'Z':
|
case 'Z':
|
||||||
if (sizeof(size_t) > sizeof(unsigned long int))
|
if (sizeof(size_t) > sizeof(unsigned long int))
|
||||||
flags |= FLAGS_LONGLONG;
|
flags |= FLAGS_LONGLONG;
|
||||||
if (sizeof(size_t) > sizeof(unsigned int))
|
if (sizeof(size_t) > sizeof(unsigned int))
|
||||||
flags |= FLAGS_LONG;
|
flags |= FLAGS_LONG;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case 'O':
|
case 'O':
|
||||||
if (sizeof(curl_off_t) > sizeof(unsigned long int)) {
|
#if SIZEOF_CURL_OFF_T > 4
|
||||||
flags |= FLAGS_LONGLONG;
|
flags |= FLAGS_LONGLONG;
|
||||||
}
|
#else
|
||||||
else if (sizeof(curl_off_t) > sizeof(unsigned int)) {
|
flags |= FLAGS_LONG;
|
||||||
flags |= FLAGS_LONG;
|
#endif
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case '0':
|
case '0':
|
||||||
if (!(flags & FLAGS_LEFT))
|
if (!(flags & FLAGS_LEFT))
|
||||||
|
Loading…
Reference in New Issue
Block a user