mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
dsp/lossless: silence some build warnings
src/dsp/lossless.c: In function 'VP8LInverseTransform': src/dsp/lossless.c:312:23: warning: 'packed_pixels' may be used uninitialized in this function [-Wuninitialized] src/dsp/lossless.c:304:16: note: 'packed_pixels' was declared here src/dsp/lossless.c:258:34: warning: 'm.red_to_blue_' may be used uninitialized in this function [-Wuninitialized] src/dsp/lossless.c:275:17: note: 'm.red_to_blue_' was declared here src/dsp/lossless.c:257:34: warning: 'm.green_to_blue_' may be used uninitialized in this function [-Wuninitialized] src/dsp/lossless.c:275:17: note: 'm.green_to_blue_' was declared here src/dsp/lossless.c:255:33: warning: 'm.green_to_red_' may be used uninitialized in this function [-Wuninitialized] src/dsp/lossless.c:275:17: note: 'm.green_to_red_' was declared here patch by pepijn vaneeckhoudt Change-Id: Iffa4764487a75479df45e772169325cd9ee60d94
This commit is contained in:
parent
0a49e3f3da
commit
b08819a624
@ -272,7 +272,7 @@ static void ColorSpaceInverseTransform(const VP8LTransform* const transform,
|
||||
|
||||
while (y < y_end) {
|
||||
const uint32_t* pred = pred_row;
|
||||
Multipliers m;
|
||||
Multipliers m = { 0, 0, 0 };
|
||||
int x;
|
||||
|
||||
for (x = 0; x < width; ++x) {
|
||||
@ -301,7 +301,7 @@ static void ColorIndexInverseTransform(
|
||||
const int count_mask = pixels_per_byte - 1;
|
||||
const uint32_t bit_mask = (1 << bits_per_pixel) - 1;
|
||||
for (y = y_start; y < y_end; ++y) {
|
||||
uint32_t packed_pixels;
|
||||
uint32_t packed_pixels = 0;
|
||||
int x;
|
||||
for (x = 0; x < width; ++x) {
|
||||
// We need to load fresh 'packed_pixels' once every 'bytes_per_pixels'
|
||||
|
Loading…
Reference in New Issue
Block a user