mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13:43 +00:00
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:
parent
45a35fd65b
commit
8b01f92c57
1 changed files with 4 additions and 1 deletions
|
@ -36,6 +36,8 @@
|
|||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "tvgCommon.h"
|
||||
#include "tvgJpgd.h"
|
||||
|
||||
#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);
|
||||
break;
|
||||
default:
|
||||
JPGD_ASSERT(false);
|
||||
TVGERR("JPG", "invalid transform_mcu_expand");
|
||||
return;
|
||||
}
|
||||
DCT_Upsample::Matrix44 a(P + Q); P -= Q;
|
||||
DCT_Upsample::Matrix44& b = P;
|
||||
|
|
Loading…
Add table
Reference in a new issue