]> granicus.if.org Git - imagemagick/commitdiff
Silenced warnings.
authordirk <dirk@git.imagemagick.org>
Thu, 22 Sep 2016 21:10:29 +0000 (23:10 +0200)
committerdirk <dirk@git.imagemagick.org>
Thu, 22 Sep 2016 21:10:29 +0000 (23:10 +0200)
MagickCore/geometry.c
MagickCore/image.c
MagickWand/composite.c
MagickWand/montage.c
coders/dcm.c
coders/dpx.c

index 5c1cb0b5c0a1ffc4cb864d31a3e1bea7a83c2713..4ff53f57006c678e5396f335aeb38be9b68b205f 100644 (file)
@@ -1316,7 +1316,7 @@ MagickExport MagickStatusType ParseMetaGeometry(const char *geometry,ssize_t *x,
   if ((flags & PercentValue) != 0)
     {
       MagickStatusType
-        flags;
+        percent_flags;
 
       PointInfo
         scale;
@@ -1324,12 +1324,12 @@ MagickExport MagickStatusType ParseMetaGeometry(const char *geometry,ssize_t *x,
       /*
         Geometry is a percentage of the image size.
       */
-      flags=ParseGeometry(geometry,&geometry_info);
+      percent_flags=ParseGeometry(geometry,&geometry_info);
       scale.x=geometry_info.rho;
-      if ((flags & RhoValue) == 0)
+      if ((percent_flags & RhoValue) == 0)
         scale.x=100.0;
       scale.y=geometry_info.sigma;
-      if ((flags & SigmaValue) == 0)
+      if ((percent_flags & SigmaValue) == 0)
         scale.y=scale.x;
       *width=(size_t) floor(scale.x*former_width/100.0+0.5);
       *height=(size_t) floor(scale.y*former_height/100.0+0.5);
index c6c33656cead0651e3f5af253772aa7eb3302b93..43c406486f89f13b360754de5a4e9bf20996a36c 100644 (file)
@@ -3827,9 +3827,6 @@ MagickExport MagickBooleanType SyncImageSettings(const ImageInfo *image_info,
   option=GetImageOption(image_info,"density");
   if (option != (const char *) NULL)
     {
-      GeometryInfo
-        geometry_info;
-
       flags=ParseGeometry(option,&geometry_info);
       image->resolution.x=geometry_info.rho;
       image->resolution.y=geometry_info.sigma;
index cbb172454e006b8d6a273927c7b201cb44dd4485..7fd97b28329d4a68e756672dc539413ad2cb9790 100644 (file)
@@ -510,9 +510,6 @@ WandExport MagickBooleanType CompositeImageCommand(ImageInfo *image_info,
       }
     if (IsCommandOption(option) == MagickFalse)
       {
-        Image
-          *images;
-
         /*
           Read input image.
         */
index c67bd604ac1425575728e32c3c920272cc494b50..570195a56d2b964d585babca38b0c7cef5a178c0 100644 (file)
@@ -409,17 +409,17 @@ WandExport MagickBooleanType MontageImageCommand(ImageInfo *image_info,
           else
             {
               char
-                filename[MagickPathExtent];
+                scene_filename[MagickPathExtent];
 
               /*
                 Form filename for multi-part images.
               */
               (void) InterpretImageFilename(image_info,(Image *) NULL,
-                image_info->filename,(int) scene,filename,exception);
+                image_info->filename,(int) scene,scene_filename,exception);
               if (LocaleCompare(filename,image_info->filename) == 0)
-                (void) FormatLocaleString(filename,MagickPathExtent,"%s.%.20g",
-                  image_info->filename,(double) scene);
-              images=ReadImages(image_info,filename,exception);
+                (void) FormatLocaleString(scene_filename,MagickPathExtent,
+                  "%s.%.20g",image_info->filename,(double) scene);
+              images=ReadImages(image_info,scene_filename,exception);
             }
           status&=(images != (Image *) NULL) &&
             (exception->severity < ErrorException);
index 26125f778b6ef2702fa2da8e8e05124ab87c33a5..75489be9210da1369450ca4f36a58c50aa5fe283 100644 (file)
@@ -3149,7 +3149,6 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
             if (strncmp(transfer_syntax,"1.2.840.10008.1.2",17) == 0)
               {
                 int
-                  count,
                   subtype,
                   type;
 
@@ -3157,7 +3156,8 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
                 subtype=0;
                 if (strlen(transfer_syntax) > 17)
                   {
-                    count=sscanf(transfer_syntax+17,".%d.%d",&type,&subtype);
+                    count=(ssize_t) sscanf(transfer_syntax+17,".%d.%d",&type,
+                      &subtype);
                     if (count < 1)
                       ThrowReaderException(CorruptImageError,
                         "ImproperImageHeader");
index 66d8eefdac7b5de42dc7abd2b4fd6e60af920343..b4a5fde0ef612f47903747beef0cba535709a623 100644 (file)
@@ -1236,7 +1236,6 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
         length;
 
       ssize_t
-        count,
         offset;
 
       if (status == MagickFalse)