On Fri Jan 16 16:24:24 2026 +0000, Rémi Bernon wrote:
How is this useful? We don't even use that function. Also I was hoping that we could use the generated function pointers at some point. In general, the [alloc_size](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-all...) attribute helps [GCC's static analyzer](https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Static-Analyzer-Options.html) spot out-of-bounds reads and writes. But it looks like p_wglAllocateMemoryNV is only used in [unix_thunks.c](https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/opengl32/unix_thunks....), so you're right, there's not much opportunity to make mistakes with it.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9907#note_127201