silent fall trhough warning, that comment is read by gcc

master
Pierre Joye 2021-08-17 10:46:07 +07:00
parent 1f70ada0e4
commit 2d7db2d7fa
1 changed files with 2 additions and 1 deletions

View File

@ -385,7 +385,8 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromPngCtx (gdIOCtx * infile)
case PNG_COLOR_TYPE_GRAY_ALPHA:
png_set_gray_to_rgb(png_ptr);
// fall through
// Keep above comment, gcc recognizes it and silent its warning about fall through case here
case PNG_COLOR_TYPE_RGB:
case PNG_COLOR_TYPE_RGB_ALPHA:
/* gd 2.0: we now support truecolor. See the comment above