Silenced warnings.

This commit is contained in:
Dirk Lemstra
2021-10-15 09:46:32 +02:00
parent 46b66778bf
commit 1b04b83173
8 changed files with 22 additions and 5 deletions
+2
View File
@@ -865,6 +865,8 @@ static LinkedListInfo *AcquireColorCache(const char *filename,
}
options=DestroyConfigureOptions(options);
}
#else
magick_unreferenced(filename);
#endif
/*
Load built-in color map.
+3
View File
@@ -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.
+2
View File
@@ -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);
+2
View File
@@ -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,
+2
View File
@@ -299,6 +299,8 @@ static LinkedListInfo *AcquireLogCache(const char *filename,
}
options=DestroyConfigureOptions(options);
}
#else
magick_unreferenced(filename);
#endif
/*
Load built-in log map.
+3
View File
@@ -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
View File
@@ -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)
+2
View File
@@ -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);