summaryrefslogtreecommitdiff
path: root/src/nsgenbind.c
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2012-11-08 17:17:52 +0000
committerVincent Sanders <vincent.sanders@collabora.co.uk>2012-11-08 17:17:52 +0000
commita3bf3977d82f6dcd54c2a38bffe63858fd4da24c (patch)
treee824881251aa3d82ff25307dba8620176292cc0d /src/nsgenbind.c
parent6893fcf829e928881c1bd05a541b33443078ea9c (diff)
downloadnsgenbind-a3bf3977d82f6dcd54c2a38bffe63858fd4da24c.tar.gz
nsgenbind-a3bf3977d82f6dcd54c2a38bffe63858fd4da24c.tar.bz2
add warning switch to control warning output at generation time
Diffstat (limited to 'src/nsgenbind.c')
-rw-r--r--src/nsgenbind.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nsgenbind.c b/src/nsgenbind.c
index 66292a9..0f549f9 100644
--- a/src/nsgenbind.c
+++ b/src/nsgenbind.c
@@ -30,7 +30,7 @@ static struct options* process_cmdline(int argc, char **argv)
return NULL;
}
- while ((opt = getopt(argc, argv, "vDd:I:o:")) != -1) {
+ while ((opt = getopt(argc, argv, "vDW::d:I:o:")) != -1) {
switch (opt) {
case 'I':
options->idlpath = strdup(optarg);
@@ -52,6 +52,10 @@ static struct options* process_cmdline(int argc, char **argv)
options->debug = true;
break;
+ case 'W':
+ options->warnings = 1; /* warning flags */
+ break;
+
default: /* '?' */
fprintf(stderr,
"Usage: %s [-d depfilename] [-I idlpath] [-o filename] inputfile\n",