Skip to content
Commit 7a8a3a35 authored by Marius Vlad's avatar Marius Vlad
Browse files

Fix compiler warnings: clobber variables

This patchs fixes warnings generated by older toolchains:

shared/image-loader.c: In function 'load_png':
shared/image-loader.c:211:12: warning: variable 'data' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  png_byte *data = NULL;

See https://linux.die.net/man/3/longjmp

 why is this needed.

Signed-off-by: default avatarMarius Vlad <marius.vlad0@gmail.com>
parent 7d070ca0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment