mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
Silenced warnings.
This commit is contained in:
@@ -865,6 +865,8 @@ static LinkedListInfo *AcquireColorCache(const char *filename,
|
||||
}
|
||||
options=DestroyConfigureOptions(options);
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
#endif
|
||||
/*
|
||||
Load built-in color map.
|
||||
|
||||
@@ -186,6 +186,9 @@ static LinkedListInfo *AcquireConfigureCache(const char *filename,
|
||||
}
|
||||
options=DestroyConfigureOptions(options);
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
magick_unreferenced(exception);
|
||||
#endif
|
||||
/*
|
||||
Load built-in configure.
|
||||
|
||||
@@ -225,6 +225,8 @@ static LinkedListInfo *AcquireDelegateCache(const char *filename,
|
||||
}
|
||||
options=DestroyConfigureOptions(options);
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
#endif
|
||||
if (IsLinkedListEmpty(cache) != MagickFalse)
|
||||
(void) LoadDelegateCache(cache,DelegateMap,"built-in",0,exception);
|
||||
|
||||
@@ -222,6 +222,8 @@ static SplayTreeInfo *AcquireLocaleSplayTree(const char *filename,
|
||||
options=DestroyLocaleOptions(options);
|
||||
}
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
#endif
|
||||
if (GetNumberOfNodesInSplayTree(cache) == 0)
|
||||
(void) LoadLocaleCache(cache,LocaleMap,"built-in",locale,0,
|
||||
|
||||
@@ -299,6 +299,8 @@ static LinkedListInfo *AcquireLogCache(const char *filename,
|
||||
}
|
||||
options=DestroyConfigureOptions(options);
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
#endif
|
||||
/*
|
||||
Load built-in log map.
|
||||
|
||||
@@ -177,6 +177,9 @@ MagickExport LinkedListInfo *AcquireMimeCache(const char *filename,
|
||||
}
|
||||
options=DestroyConfigureOptions(options);
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
magick_unreferenced(exception);
|
||||
#endif
|
||||
return(cache);
|
||||
}
|
||||
|
||||
+6
-5
@@ -936,15 +936,13 @@ static MagickBooleanType CanWriteProfileToFile(const char *filename)
|
||||
|
||||
static MagickBooleanType LoadOpenCLBenchmarks(MagickCLEnv clEnv)
|
||||
{
|
||||
#if !MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
|
||||
char
|
||||
filename[MagickPathExtent];
|
||||
|
||||
StringInfo
|
||||
*option;
|
||||
|
||||
size_t
|
||||
i;
|
||||
|
||||
(void) FormatLocaleString(filename,MagickPathExtent,"%s%s%s",
|
||||
GetOpenCLCacheDirectory(),DirectorySeparator,IMAGEMAGICK_PROFILE_FILE);
|
||||
|
||||
@@ -952,21 +950,24 @@ static MagickBooleanType LoadOpenCLBenchmarks(MagickCLEnv clEnv)
|
||||
We don't run the benchmark when we can not write out a device profile. The
|
||||
first GPU device will be used.
|
||||
*/
|
||||
#if !MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
|
||||
if (CanWriteProfileToFile(filename) == MagickFalse)
|
||||
#endif
|
||||
{
|
||||
size_t
|
||||
i;
|
||||
|
||||
for (i = 0; i < clEnv->number_devices; i++)
|
||||
clEnv->devices[i]->score=1.0;
|
||||
|
||||
SelectOpenCLDevice(clEnv,CL_DEVICE_TYPE_GPU);
|
||||
return(MagickFalse);
|
||||
}
|
||||
|
||||
#if !MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
|
||||
option=ConfigureFileToStringInfo(filename);
|
||||
LoadOpenCLDeviceBenchmark(clEnv,(const char *) GetStringInfoDatum(option));
|
||||
option=DestroyStringInfo(option);
|
||||
return(MagickTrue);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void AutoSelectOpenCLDevices(MagickCLEnv clEnv)
|
||||
|
||||
@@ -238,6 +238,8 @@ static SplayTreeInfo *AcquireTypeCache(const char *filename,
|
||||
font_path=DestroyString(font_path);
|
||||
}
|
||||
}
|
||||
#else
|
||||
magick_unreferenced(filename);
|
||||
#endif
|
||||
if (GetNumberOfNodesInSplayTree(cache) == 0)
|
||||
(void) LoadTypeCache(cache,TypeMap,"built-in",0,exception);
|
||||
|
||||
Reference in New Issue
Block a user