This fixes the following error, encountered with gcc 10.2:
| ../../../../../../workspace/sources/nnstreamer/tests/bmp2png.c: In function 'save_png_to_file':
| ../../../../../../workspace/sources/nnstreamer/tests/bmp2png.c:95:16: error: variable 'status' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
| 95 | register int status = -1;
| | ^~~~~~
| cc1: all warnings being treated as errors
Signed-off-by: Xavier Roumegue <xavier.roumegue@nxp.com>
/** Set up error handling. */
if (setjmp (png_jmpbuf (png_ptr))) {
+ status = -1;
goto png_failure;
}