From: Cristy Date: Sun, 14 Jul 2019 13:04:45 +0000 (-0400) Subject: Reduce compiler warnings X-Git-Tag: 7.0.8-54~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5135214489f6591c9715c78b0e6ceb132102b8e7;p=imagemagick Reduce compiler warnings --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 7cd2ddd21..30ee6bc76 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -5009,7 +5009,7 @@ static inline void PrefetchPixelCacheNexusPixels(const NexusInfo *nexus_info, static Quantum *SetPixelCacheNexusPixels( const CacheInfo *magick_restrict cache_info,const MapMode mode, const ssize_t x,const ssize_t y,const size_t width,const size_t height, - const MagickBooleanType buffered,NexusInfo *nexus_info, + const MagickBooleanType buffered,NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception) { MagickBooleanType diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index ff38f17dd..677de5a90 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -366,7 +366,7 @@ MagickExport char *GetPageGeometry(const char *page_geometry) typedef struct _PageInfo { const char - name[11]; + name[12]; size_t extent; diff --git a/MagickCore/nt-base.c b/MagickCore/nt-base.c index 6ff7358eb..8c2359fd5 100644 --- a/MagickCore/nt-base.c +++ b/MagickCore/nt-base.c @@ -1725,29 +1725,29 @@ MagickExport MagickBooleanType NTLongPathsEnabled() "SYSTEM\\CurrentControlSet\\Control\\FileSystem",0,KEY_READ, ®istry_key); if (status != ERROR_SUCCESS) - { - RegCloseKey(registry_key); - long_paths_enabled=0; - return(MagickFalse); - } - value=(PVOID) NULL; + { + RegCloseKey(registry_key); + long_paths_enabled=0; + return(MagickFalse); + } + value=0; status=RegQueryValueExA(registry_key,"LongPathsEnabled",0,&type,NULL, NULL); if ((status != ERROR_SUCCESS) || (type != REG_DWORD)) - { - RegCloseKey(registry_key); - long_paths_enabled=0; - return(MagickFalse); - } + { + RegCloseKey(registry_key); + long_paths_enabled=0; + return(MagickFalse); + } status=RegQueryValueExA(registry_key,"LongPathsEnabled",0,&type,&value, &size); RegCloseKey(registry_key); if (status != ERROR_SUCCESS) - { - long_paths_enabled=0; - return(MagickFalse); - } - long_paths_enabled=(size_t)value; + { + long_paths_enabled=0; + return(MagickFalse); + } + long_paths_enabled=(size_t) value; } return(long_paths_enabled == 1 ? MagickTrue : MagickFalse); } diff --git a/MagickCore/xwindow.c b/MagickCore/xwindow.c index 12f92d8a1..b4d713cee 100644 --- a/MagickCore/xwindow.c +++ b/MagickCore/xwindow.c @@ -9944,6 +9944,7 @@ MagickExport Image *XImportImage(const ImageInfo *image_info, assert(ximage_info != (XImportInfo *) NULL); assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickCoreSignature); + (void) ximage_info; (void) exception; return((Image *) NULL); } diff --git a/MagickWand/composite.c b/MagickWand/composite.c index 0e3f4f418..6041432a8 100644 --- a/MagickWand/composite.c +++ b/MagickWand/composite.c @@ -365,6 +365,7 @@ static MagickBooleanType CompositeUsage(void) static void GetCompositeOptions(const ImageInfo *image_info, CompositeOptions *composite_options) { + (void) image_info; (void) memset(composite_options,0,sizeof(*composite_options)); composite_options->channel=DefaultChannels; composite_options->compose=OverCompositeOp;