summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-08 15:02:20 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-10-08 15:02:20 (GMT)
commitc2c05535f6a758d58fd3d7e995ef320778a9eb01 (patch)
treeef60a20b1ca531da6c83f52b450660d1c81f86a4
parent0289f967efd88022efa4ef4d3e5851225d903a88 (diff)
downloadnsgenbind-c2c05535f6a758d58fd3d7e995ef320778a9eb01.tar.gz
nsgenbind-c2c05535f6a758d58fd3d7e995ef320778a9eb01.tar.bz2
Add warning for identifying generated output
-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)