diff options
Diffstat (limited to 'testutil/get-error.c')
-rw-r--r-- | testutil/get-error.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testutil/get-error.c b/testutil/get-error.c index 8f066d7..d390a60 100644 --- a/testutil/get-error.c +++ b/testutil/get-error.c @@ -5,12 +5,21 @@ #include <stdio.h> #include <string.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) { int i; + if (argc < 2) { + fprintf(stderr, "usage error\n"); + return 3; + } + for (i = 1; i < argc; i++) { #define X(N, S)\ if (!strcmp(argv[i], #N))\ |