From c2c05535f6a758d58fd3d7e995ef320778a9eb01 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 8 Oct 2015 16:02:20 +0100 Subject: Add warning for identifying generated output --- src/nsgenbind.c | 5 ++++- src/options.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nsgenbind.c b/src/nsgenbind.c index 09d4c29..58d62cb 100644 --- a/src/nsgenbind.c +++ b/src/nsgenbind.c @@ -70,9 +70,12 @@ static struct options* process_cmdline(int argc, char **argv) options->warnings |= WARNING_UNIMPLEMENTED; } else if (strcmp(optarg, "duplicated") == 0) { options->warnings |= WARNING_DUPLICATED; + } else if (strcmp(optarg, "generated") == 0) { + options->warnings |= WARNING_GENERATED; } else { fprintf(stderr, - "Unknown warning option \"%s\" valid options are: all, unimplemented\n", + "Unknown warning option \"%s\" valid options are: all, unimplemented,\n" + " duplicated, generated\n", optarg); free(options); return NULL; diff --git a/src/options.h b/src/options.h index d452c17..ebd8466 100644 --- a/src/options.h +++ b/src/options.h @@ -29,6 +29,7 @@ enum opt_warnings { WARNING_UNIMPLEMENTED = 1, WARNING_DUPLICATED = 2, WARNING_WEBIDL = 4, + WARNING_GENERATED = 8, }; #define WARNING_ALL (WARNING_UNIMPLEMENTED | WARNING_DUPLICATED | WARNING_WEBIDL) -- cgit v1.2.3