summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nsgenbind.c5
-rw-r--r--src/options.h1
2 files changed, 5 insertions, 1 deletions
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)