diff options
author | Ron Yorston <rmy@pobox.com> | 2024-01-02 09:38:11 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-01-17 11:57:42 +0000 |
commit | 99d22da0e95d8356239c63199eb03f70adbf7a61 (patch) | |
tree | d7ce8b095e41d5db964f686acd3c1481a1f9b5da /libbb/xfuncs_printf.c | |
parent | c0b57922a9373395c58139b2d4fe4cd865ef8223 (diff) | |
download | busybox-w32-99d22da0e95d8356239c63199eb03f70adbf7a61.tar.gz busybox-w32-99d22da0e95d8356239c63199eb03f70adbf7a61.tar.bz2 busybox-w32-99d22da0e95d8356239c63199eb03f70adbf7a61.zip |
Remove FAST_FUNC from variadic functions
The GCC documentation points out that the stdcall attribute doesn't
apply to functions which take a variable number of arguments. GCC
is silent about this during compilation but clang complains noisily.
Remove FAST_FUNC from all variadic functions. This has no effect
whatsoever on the binary resulting from a default 32-bit build.
Signed-off-by: Ron Yorston <rmy@pobox.com>
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index a9add8ab2..0ead3b2eb 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -336,7 +336,7 @@ void FAST_FUNC xprint_and_close_file(FILE *file) | |||
336 | 336 | ||
337 | // Die with an error message if we can't malloc() enough space and do an | 337 | // Die with an error message if we can't malloc() enough space and do an |
338 | // sprintf() into that space. | 338 | // sprintf() into that space. |
339 | char* FAST_FUNC xasprintf(const char *format, ...) | 339 | char* xasprintf(const char *format, ...) |
340 | { | 340 | { |
341 | va_list p; | 341 | va_list p; |
342 | int r; | 342 | int r; |
@@ -552,7 +552,7 @@ void FAST_FUNC selinux_or_die(void) | |||
552 | #endif | 552 | #endif |
553 | 553 | ||
554 | #if !ENABLE_PLATFORM_MINGW32 | 554 | #if !ENABLE_PLATFORM_MINGW32 |
555 | int FAST_FUNC ioctl_or_perror_and_die(int fd, unsigned request, void *argp, const char *fmt,...) | 555 | int ioctl_or_perror_and_die(int fd, unsigned request, void *argp, const char *fmt,...) |
556 | { | 556 | { |
557 | int ret; | 557 | int ret; |
558 | va_list p; | 558 | va_list p; |
@@ -568,7 +568,7 @@ int FAST_FUNC ioctl_or_perror_and_die(int fd, unsigned request, void *argp, cons | |||
568 | return ret; | 568 | return ret; |
569 | } | 569 | } |
570 | 570 | ||
571 | int FAST_FUNC ioctl_or_perror(int fd, unsigned request, void *argp, const char *fmt,...) | 571 | int ioctl_or_perror(int fd, unsigned request, void *argp, const char *fmt,...) |
572 | { | 572 | { |
573 | va_list p; | 573 | va_list p; |
574 | int ret = ioctl(fd, request, argp); | 574 | int ret = ioctl(fd, request, argp); |