summaryrefslogtreecommitdiffstats
path: root/testutil/perror-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'testutil/perror-all.c')
-rw-r--r--testutil/perror-all.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/testutil/perror-all.c b/testutil/perror-all.c
index 2b37cff..d7ee45b 100644
--- a/testutil/perror-all.c
+++ b/testutil/perror-all.c
@@ -4,13 +4,20 @@
#include <stddef.h>
#include <stdio.h>
+#if defined(__clang__)
+# pragma clang diagnostic ignored "-Wunsafe-buffer-usage" /* clang is just being silly */
+#endif
+
int
-main(int argc, char *argv[])
+main(int argc, char **argv)
{
size_t i, count;
- (void) argc;
+ if (argc < 1 || argc > 2) {
+ fprintf(stderr, "usage error\n");
+ return 3;
+ }
#define X(...) 1
count = (LIBSYSCALLS_LIST_ERRORS(X, +));