Re: [PATCH v3 1/2] lazyload.h: fix warnings about mismatching function pointer types
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 27, 2021, 02:58 UTC
- Message-ID
- <CAPig+cRUUZ68B5saQbFor9f+URkHmEJJsB9mXefKWexDYOfj+g@mail.gmail.com>
- In-Reply-To
- <20210926100512.58924-2-carenas@gmail.com>
On Sun, Sep 26, 2021 at 6:05 AM Carlo Marcelo Arenas Belón <carenas@gmail.com> wrote:
Show 7 quoted lines
> Here, GCC warns about every use of the INIT_PROC_ADDR macro, for example: > > In file included from compat/mingw.c:8: > [...] > (message wrapper for convenience). Insert a cast to keep the compiler > happy. A cast is fine in these cases because they are generic function > pointer values that have been looked up in a DLL.
s/wrapper/wrapped/
> Helped-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> > Signed-off-by: Johannes Sixt <j6t@kdbg.org>