From 7d6660bd2a7ea10d3c783891ff9f5e148067d2ca Mon Sep 17 00:00:00 2001
From: vszakats <github@syenar.net>
Date: Thu, 5 Apr 2012 14:20:20 +0200
Subject: [PATCH] fixed unused parameter warnings (shown by mingw 4.6)
---
src/hpdf_encoder_utf.c | 2 ++
src/hpdf_image_ccitt.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/src/hpdf_encoder_utf.c b/src/hpdf_encoder_utf.c
index df2c308..45cd3b9 100644
--- a/src/hpdf_encoder_utf.c
+++ b/src/hpdf_encoder_utf.c
@@ -2141,6 +2141,7 @@ static HPDF_BOOL
UTF8_IsLeadByte (HPDF_Encoder encoder,
HPDF_BYTE b)
{
+ HPDF_UNUSED (encoder);
return ((b >= 0xC2 && b <= 0xDF));
}
@@ -2149,6 +2150,7 @@ static HPDF_BOOL
UTF8_IsTrialByte (HPDF_Encoder encoder,
HPDF_BYTE b)
{
+ HPDF_UNUSED (encoder);
return (b >= 0x80 && b <= 0xBF);
}
diff --git a/src/hpdf_image_ccitt.c b/src/hpdf_image_ccitt.c
index 7ab055d..dc3d826 100644
--- a/src/hpdf_image_ccitt.c
+++ b/src/hpdf_image_ccitt.c
@@ -175,6 +175,8 @@ HPDF_Fax3SetupState(struct _HPDF_CCITT_Data *pData, HPDF_UINT width,
HPDF_Fax3CodecState* esp = EncoderState(pData);
uint32 rowbytes, rowpixels, nruns;
+ HPDF_UNUSED (height);
+
rowbytes = line_width;
rowpixels = width;
@@ -650,6 +652,8 @@ HPDF_Stream_CcittToStream( const HPDF_BYTE *buf,
int lineIncrement;
struct _HPDF_CCITT_Data data;
+ HPDF_UNUSED (e);
+
if(height==0) return 1;
if(top_is_first) {
pBufPos = buf;
--
2.21.1 (Apple Git-122.3)