Skip to content

Commit

Permalink
Fixed various build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Apr 15, 2023
1 parent 0b8553c commit da8c0b2
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion coders/djvu.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ process_message(ddjvu_message_t *message)
* we use the RGB format!
*/
static void
get_page_image(LoadContext *lc, ddjvu_page_t *page, int x, int y, int w, int h, const ImageInfo *magick_unreferenced(image_info) ) {
get_page_image(LoadContext *lc, ddjvu_page_t *page, int x, int y, int w, int h, const ImageInfo *magick_unused(image_info) ) {
ddjvu_format_t
*format;

Expand Down
4 changes: 2 additions & 2 deletions coders/ghostscript-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ static double GhostscriptVersion(const GhostInfo *ghost_info)
#endif

static inline MagickBooleanType InvokeGhostscriptDelegate(
const MagickBooleanType verbose,const char *command,
char *magick_unreferenced(message),ExceptionInfo *exception)
const MagickBooleanType verbose,const char *command,char *message,
ExceptionInfo *exception)
{
int
status;
Expand Down
2 changes: 1 addition & 1 deletion coders/xcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ static MagickBooleanType load_hierarchy(Image *image,XCFDocInfo *inDocInfo,
}

static void InitXCFImage(XCFLayerInfo *outLayer,
ExceptionInfo *magick_unreferenced(exception))
ExceptionInfo *magick_unused(exception))
{
outLayer->image->page.x=outLayer->offset_x;
outLayer->image->page.y=outLayer->offset_y;
Expand Down
6 changes: 4 additions & 2 deletions magick/attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,10 +1194,11 @@ MagickExport ImageType IdentifyImageType(const Image *image,
%
*/
MagickExport MagickBooleanType IsGrayImage(const Image *image,
ExceptionInfo *magick_unreferenced(exception))
ExceptionInfo *magick_unused(exception))
{
assert(image != (Image *) NULL);
assert(image->signature == MagickCoreSignature);
magick_unreferenced(exception);
if ((image->type == BilevelType) || (image->type == GrayscaleType) ||
(image->type == GrayscaleMatteType))
return(MagickTrue);
Expand Down Expand Up @@ -1230,10 +1231,11 @@ MagickExport MagickBooleanType IsGrayImage(const Image *image,
%
*/
MagickExport MagickBooleanType IsMonochromeImage(const Image *image,
ExceptionInfo *magick_unreferenced(exception))
ExceptionInfo *magick_unused(exception))
{
assert(image != (Image *) NULL);
assert(image->signature == MagickCoreSignature);
magick_unreferenced(exception);
if (image->type == BilevelType)
return(MagickTrue);
return(MagickFalse);
Expand Down
3 changes: 2 additions & 1 deletion magick/geometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ MagickExport MagickBooleanType IsSceneGeometry(const char *geometry,
%
*/
MagickExport MagickBooleanType ListPagesizes(FILE *file,
ExceptionInfo *magick_unreferenced(exception))
ExceptionInfo *magick_unused(exception))
{
#define MaxMagickSpaces ((int) sizeof(Pagesizes[0].name))

Expand All @@ -732,6 +732,7 @@ MagickExport MagickBooleanType ListPagesizes(FILE *file,
ssize_t
i;

magick_unreferenced(exception);
if (file == (FILE *) NULL)
file=stdout;
(void) FormatLocaleFile(file,"\nPagesize Geometry \n");
Expand Down
2 changes: 1 addition & 1 deletion magick/histogram.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ MagickExport MagickBooleanType IsHistogramImage(const Image *image,
%
*/
MagickExport MagickBooleanType IsPaletteImage(const Image *image,
ExceptionInfo *magick_unreferenced(exception))
ExceptionInfo *magick_unused(exception))
{
assert(image != (Image *) NULL);
assert(image->signature == MagickCoreSignature);
Expand Down
3 changes: 1 addition & 2 deletions magick/magick.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,7 @@ static void *DestroyMagickNode(void *magick_info)
return(RelinquishMagickMemory(p));
}

static MagickBooleanType IsMagickTreeInstantiated(
ExceptionInfo *magick_unreferenced(exception))
static MagickBooleanType IsMagickTreeInstantiated(ExceptionInfo *exception)
{
if (magick_list_initialized == MagickFalse)
{
Expand Down
3 changes: 2 additions & 1 deletion magick/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ struct _MatrixInfo
*/

#if defined(SIGBUS)
static void MatrixSignalHandler(int magick_unreferenced(status))
static void MatrixSignalHandler(int magick_unused(status))
{
magick_unreferenced(status);
ThrowFatalException(CacheFatalError,"UnableToExtendMatrixCache");
}
#endif
Expand Down
5 changes: 2 additions & 3 deletions magick/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,7 @@ static MagickBooleanType GetEXIFProperty(const Image *image,
return(status);
}

static MagickBooleanType GetICCProperty(const Image *image,
const char *magick_unreferenced(property))
static MagickBooleanType GetICCProperty(const Image *image)
{
const StringInfo
*profile;
Expand Down Expand Up @@ -2371,7 +2370,7 @@ MagickExport const char *GetImageProperty(const Image *image,
if ((LocaleNCompare("icc:",property,4) == 0) ||
(LocaleNCompare("icm:",property,4) == 0))
{
(void) GetICCProperty(image,property);
(void) GetICCProperty(image);
break;
}
if (LocaleNCompare("iptc:",property,5) == 0)
Expand Down
5 changes: 2 additions & 3 deletions magick/threshold.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,7 @@ static double OTSUThreshold(const Image *image,const double *histogram,
return(100.0*threshold/MaxIntensity);
}

static double TriangleThreshold(const Image *magick_unreferenced(image),
const double *histogram)
static double TriangleThreshold(const double *histogram)
{
double
a,
Expand Down Expand Up @@ -757,7 +756,7 @@ MagickExport MagickBooleanType AutoThresholdImage(Image *image,
}
case TriangleThresholdMethod:
{
threshold=TriangleThreshold(image,histogram);
threshold=TriangleThreshold(histogram);
break;
}
}
Expand Down

0 comments on commit da8c0b2

Please sign in to comment.