mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix LodePNG to avoid -Wcast-qual
warnings
<https://github.com/lvandeve/lodepng/issues/160>
This commit is contained in:
parent
89a888277a
commit
90bec40276
@ -1,7 +1,7 @@
|
||||
.PHONY: all clean
|
||||
|
||||
CC := gcc
|
||||
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
|
||||
CFLAGS := -O3 -flto -std=c11 -Wall -Wextra -pedantic
|
||||
|
||||
tools := \
|
||||
bpp2png \
|
||||
|
@ -4618,10 +4618,10 @@ static unsigned readChunk_iTXt(LodePNGInfo* info, const LodePNGDecoderSettings*
|
||||
length, &zlibsettings);
|
||||
/*error: compressed text larger than decoder->max_text_size*/
|
||||
if(error && size > zlibsettings.max_output_size) error = 112;
|
||||
if(!error) error = lodepng_add_itext_sized(info, key, langtag, transkey, (char*)str, size);
|
||||
if(!error) error = lodepng_add_itext_sized(info, key, langtag, transkey, (const char*)str, size);
|
||||
lodepng_free(str);
|
||||
} else {
|
||||
error = lodepng_add_itext_sized(info, key, langtag, transkey, (char*)(data + begin), length);
|
||||
error = lodepng_add_itext_sized(info, key, langtag, transkey, (const char*)(data + begin), length);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user