From 12a90ebe9802eadae147b6bd3ce376175e75e4b4 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Tue, 15 Apr 2025 19:35:58 +0800 Subject: Eliminated many compilation warnings (#2535) --- src/wrapped/wrappedlibavutil56.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/wrapped') diff --git a/src/wrapped/wrappedlibavutil56.c b/src/wrapped/wrappedlibavutil56.c index 1efec99c..a714651d 100644 --- a/src/wrapped/wrappedlibavutil56.c +++ b/src/wrapped/wrappedlibavutil56.c @@ -3,6 +3,7 @@ #define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include +#define __STDC_WANT_LIB_EXT2__ 1 // for vasprintf #include #include "wrappedlibs.h" @@ -38,12 +39,12 @@ GO(4) // log_callback ... #define GO(A) \ -static uintptr_t my_log_callback_fct_##A = 0; \ -static void my_log_callback_##A(void* a, int b, void* c, va_list d) \ +static uintptr_t my_log_callback_fct_##A = 0; \ +static void my_log_callback_##A(void* a, int b, void* c, va_list d) \ { \ x64_va_list_t null_va = {0}; \ char* p = NULL; \ - vasprintf(&p, c, d); \ + (void)!vasprintf(&p, c, d); \ RunFunctionFmt(my_log_callback_fct_##A, "pipp", a, b, d, null_va); \ free(p); \ } -- cgit 1.4.1