mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-06-12 15:37:14 +02:00
Silenced coders warnings.
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user