Revision: 1156
http://vcs.pcre.org/viewvc?view=rev&revision=1156
Author: ph10
Date: 2012-10-21 18:21:19 +0100 (Sun, 21 Oct 2012)
Log Message:
-----------
Lose compiler warnings for unused parameter and defined but not used when UTF
is not supported.
Modified Paths:
--------------
code/trunk/pcre32_utf32_utils.c
Modified: code/trunk/pcre32_utf32_utils.c
===================================================================
--- code/trunk/pcre32_utf32_utils.c 2012-10-21 17:13:28 UTC (rev 1155)
+++ code/trunk/pcre32_utf32_utils.c 2012-10-21 17:21:19 UTC (rev 1156)
@@ -51,6 +51,7 @@
#include "pcre_internal.h"
+#ifdef SUPPORT_UTF
static pcre_uint32
swap_uint32(pcre_uint32 value)
{
@@ -59,7 +60,9 @@
((value & 0x00ff0000) >> 8) |
(value >> 24);
}
+#endif
+
/*************************************************
* Convert any UTF-32 string to host byte order *
*************************************************/
@@ -130,6 +133,7 @@
(void)(output); /* Keep picky compilers happy */
(void)(input);
(void)(keep_boms);
+(void)(host_byte_order);
#endif /* SUPPORT_UTF */
return length;
}