From a9710cb73cc9ecadaff241428a39a26935cb5c0a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 25 Feb 2021 20:45:10 +0100 Subject: Applied even more warning flags! Fixing all the warnings wasn't that easy actually.. --- libgui/png.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libgui/png.c') diff --git a/libgui/png.c b/libgui/png.c index 03ff89e..5f55a3e 100644 --- a/libgui/png.c +++ b/libgui/png.c @@ -5228,7 +5228,7 @@ static u32 readChunk_iTXt(pngInfo *info, const pngDecoderSettings *decoder, cons png_free(str); } else { error = png_add_itext_sized(info, key, langtag, transkey, - (char *)(data + begin), length); + (const char *)(data + begin), length); } break; @@ -7253,8 +7253,9 @@ const char *png_error_text(u32 code) unreasonable memory consumption when decoding due to impossibly large ICC profile*/ case 113: return "ICC profile unreasonably large"; + default: + return "unknown error code"; } - return "unknown error code"; } #endif /*PNG_COMPILE_ERROR_TEXT*/ -- cgit v1.2.3