From 233bfcf45efcf222ea45704f65952f62bc166a90 Mon Sep 17 00:00:00 2001 From: Phillip Johnston Date: Wed, 16 Jan 2019 09:58:37 -0800 Subject: Add cast to uintptr to silent the const-cast warning --- printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printf.c b/printf.c index c9a1175..638275f 100644 --- a/printf.c +++ b/printf.c @@ -756,7 +756,7 @@ int fctprintf(void (*out)(char character, void* arg), void* arg, const char* for va_list va; va_start(va, format); const out_fct_wrap_type out_fct_wrap = { out, arg }; - const int ret = _vsnprintf(_out_fct, (char*)&out_fct_wrap, (size_t)-1, format, va); + const int ret = _vsnprintf(_out_fct, (char*)(uintptr_t)&out_fct_wrap, (size_t)-1, format, va); va_end(va); return ret; } -- cgit v1.2.3