loader/jpg: --compiler warnings

../src/loaders/jpg/tvgJpgd.cpp:867:36: warning: ‘*&P.DCT_Upsample::Matrix44::v[0][0]’ may be used uninitialized [-Wmaybe-uninitialized]

https://github.com/thorvg/thorvg/issues/2639
This commit is contained in:
Hermet Park 2024-09-25 12:09:33 +09:00 committed by Hermet Park
parent ec25ce9362
commit 06441437c0

View file

@ -36,6 +36,8 @@
#include <stdio.h> #include <stdio.h>
#include <setjmp.h> #include <setjmp.h>
#include <stdint.h> #include <stdint.h>
#include "tvgCommon.h"
#include "tvgJpgd.h" #include "tvgJpgd.h"
#ifdef _MSC_VER #ifdef _MSC_VER
@ -1738,7 +1740,8 @@ void jpeg_decoder::transform_mcu_expand(int mcu_row)
DCT_Upsample::R_S<8, 8>::calc(R, S, pSrc_ptr); DCT_Upsample::R_S<8, 8>::calc(R, S, pSrc_ptr);
break; break;
default: default:
JPGD_ASSERT(false); TVGERR("JPG", "invalid transform_mcu_expand");
return;
} }
DCT_Upsample::Matrix44 a(P + Q); P -= Q; DCT_Upsample::Matrix44 a(P + Q); P -= Q;
DCT_Upsample::Matrix44& b = P; DCT_Upsample::Matrix44& b = P;