summaryrefslogtreecommitdiff
path: root/pcre32_utf32_utils.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-21 17:21:19 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-21 17:21:19 +0000
commit28a2356d33cc9164ff6845926b95659cdf440e10 (patch)
tree91b6fe1e1efa551eedbce5290ce416195dfc9868 /pcre32_utf32_utils.c
parent51f64962a1407e24eff8542bd1bf2505fb9967c6 (diff)
downloadpcre-28a2356d33cc9164ff6845926b95659cdf440e10.tar.gz
Lose compiler warnings for unused parameter and defined but not used when UTF
is not supported. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1156 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre32_utf32_utils.c')
-rw-r--r--pcre32_utf32_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcre32_utf32_utils.c b/pcre32_utf32_utils.c
index 4c51a00..f844e23 100644
--- a/pcre32_utf32_utils.c
+++ b/pcre32_utf32_utils.c
@@ -51,6 +51,7 @@ strings to host byte order. */
#include "pcre_internal.h"
+#ifdef SUPPORT_UTF
static pcre_uint32
swap_uint32(pcre_uint32 value)
{
@@ -59,6 +60,8 @@ return ((value & 0x000000ff) << 24) |
((value & 0x00ff0000) >> 8) |
(value >> 24);
}
+#endif
+
/*************************************************
* Convert any UTF-32 string to host byte order *
@@ -130,6 +133,7 @@ if (host_byte_order != NULL)
(void)(output); /* Keep picky compilers happy */
(void)(input);
(void)(keep_boms);
+(void)(host_byte_order);
#endif /* SUPPORT_UTF */
return length;
}