mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 22:23:27 +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
ec25ce9362
commit
06441437c0
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue