Silenced coders warnings.

This commit is contained in:
Dirk Lemstra
2023-04-10 14:03:41 +02:00
parent 427e4434bd
commit 8f78bf4930
5 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -467,7 +467,7 @@ static Image *ReadFTXTImage(const ImageInfo *image_info,
case 'j':
if (*(pf+1)=='\0')
ThrowReaderException(DelegateFatalError,"EscapeJproblem");
/* Drop through... */
magick_attribute((fallthrough));
default:
if ((i+=2) >= MaxTextExtent)
ThrowReaderException(DelegateFatalError,"ppf bust");
+4
View File
@@ -1884,9 +1884,13 @@ static unsigned char *PopRunlengthPacket(Image *image,unsigned char *pixels,
{
*pixels++=(unsigned char) (value >> 24);
*pixels++=(unsigned char) (value >> 16);
magick_attribute((fallthrough));
}
case 16:
{
*pixels++=(unsigned char) (value >> 8);
magick_attribute((fallthrough));
}
case 8:
{
*pixels++=(unsigned char) value;
+2 -1
View File
@@ -462,7 +462,8 @@ static Image *ReadTGAImage(const ImageInfo *image_info,ExceptionInfo *exception)
for (y=0; y < (ssize_t) image->rows; y++)
{
size_t
y_offset = (flip_y == MagickFalse) ? offset : image->rows-1-offset;
y_offset = (size_t) (flip_y == MagickFalse) ? (size_t) offset :
image->rows-1-offset;
q=QueueAuthenticPixels(image,0,y_offset,image->columns,1,exception);
if (q == (Quantum *) NULL)
+1
View File
@@ -644,6 +644,7 @@ static MagickBooleanType WriteVIDEOImage(const ImageInfo *image_info,
{
blob=(unsigned char *) FileToBlob(previous_image,~0UL,&length,
exception);
magick_attribute((fallthrough));
}
default:
{
+1 -1
View File
@@ -646,7 +646,7 @@ static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception)
/* duplicate the previous row RunCount x */
for(i=0;i<=RunCount;i++)
{
if (InsertRow(image,BImgBuff,(ssize_t) ((ssize_t) image->rows > y ? y : image->rows-1),bpp,exception) == MagickFalse)
if (InsertRow(image,BImgBuff,((ssize_t) image->rows > y ? y : (ssize_t) image->rows-1),bpp,exception) == MagickFalse)
{
BImgBuff=(unsigned char *) RelinquishMagickMemory(BImgBuff);
return(-3);