diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-04-15 19:35:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-15 13:35:58 +0200 |
| commit | 12a90ebe9802eadae147b6bd3ce376175e75e4b4 (patch) | |
| tree | 69e92461a9b4011a738aedcb389776706753279f /src/wrapped | |
| parent | 5cd201241b9769bd8583f0eca9d9469e0ab9ca99 (diff) | |
| download | box64-12a90ebe9802eadae147b6bd3ce376175e75e4b4.tar.gz box64-12a90ebe9802eadae147b6bd3ce376175e75e4b4.zip | |
Eliminated many compilation warnings (#2535)
Diffstat (limited to 'src/wrapped')
| -rw-r--r-- | src/wrapped/wrappedlibavutil56.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <dlfcn.h> #include <stdarg.h> +#define __STDC_WANT_LIB_EXT2__ 1 // for vasprintf #include <stdio.h> #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); \ } |