summaryrefslogtreecommitdiff
path: root/src/punycode.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-19 15:43:01 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-19 15:43:01 +0000
commit9c8092eda6e1e63d28dc4299353cf1a8c30b0aa5 (patch)
tree8bbdbde0fa86d1906302574376d3268bbb7dcca9 /src/punycode.c
parent84eb03f43a6bc47fe041b893a9aaa6773ffc29d5 (diff)
Fixed warnings
Diffstat (limited to 'src/punycode.c')
-rw-r--r--src/punycode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/punycode.c b/src/punycode.c
index fa44a6a..187351a 100644
--- a/src/punycode.c
+++ b/src/punycode.c
@@ -278,6 +278,9 @@ enum punycode_status punycode_decode(punycode_uint input_length,
return punycode_success;
}
+#ifdef PUNYCODE_COSTELLO_RFC3492_INCLUDE_TEST
+#define PUNYCODE_COSTELLO_RFC3492_INCLUDE_TEST
+
/******************************************************************/
/* Wrapper for testing (would normally go in a separate .c file): */
@@ -321,6 +324,8 @@ static const char invalid_input[] = "invalid input\n";
static const char overflow[] = "arithmetic overflow\n";
static const char io_error[] = "I/O error\n";
+#endif
+
/* The following string is used to convert printable */
/* characters between ASCII and the native charset: */