randy408 / libspng

Simple, modern libpng alternative
https://libspng.org
BSD 2-Clause "Simplified" License
742 stars 75 forks source link

Fixed build warnings #236

Closed Loobinex closed 2 years ago

Loobinex commented 2 years ago

Fixes warnings:

deps/libspng/spng/spng.c: In function ‘spng_ctx_free’:
deps/libspng/spng/spng.c:5002:19: warning: declaration of ‘free_func’ shadows a global declaration [-Wshadow]
 5002 |     spng_free_fn *free_func = ctx->alloc.free_fn;
      |                   ^~~~~~~~~
In file included from deps/libspng/spng/spng.c:21:
deps/zlib/zlib.h:82:18: note: shadowed declaration is here
   82 | typedef void   (*free_func)  OF((voidpf opaque, voidpf address));
      |    
randy408 commented 2 years ago

Thanks!

Loobinex commented 2 years ago

No thank you!