summaryrefslogtreecommitdiff
path: root/t/helper/test-ctype.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-ctype.c')
-rw-r--r--t/helper/test-ctype.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/helper/test-ctype.c b/t/helper/test-ctype.c
index b21bd672d9..e5659df40b 100644
--- a/t/helper/test-ctype.c
+++ b/t/helper/test-ctype.c
@@ -1,5 +1,4 @@
#include "test-tool.h"
-#include "cache.h"
static int rc;
@@ -28,6 +27,8 @@ static int is_in(const char *s, int ch)
if (is_in(s, i) != t(i)) \
report_error(#t, i); \
} \
+ if (t(EOF)) \
+ report_error(#t, EOF); \
}
#define DIGIT "0123456789"
@@ -48,7 +49,7 @@ static int is_in(const char *s, int ch)
"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" \
"\x7f"
-int cmd__ctype(int argc, const char **argv)
+int cmd__ctype(int argc UNUSED, const char **argv UNUSED)
{
TEST_CLASS(isdigit, DIGIT);
TEST_CLASS(isspace, " \n\r\t");