diff options
author | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-11-08 17:17:52 +0000 |
---|---|---|
committer | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-11-08 17:17:52 +0000 |
commit | a3bf3977d82f6dcd54c2a38bffe63858fd4da24c (patch) | |
tree | e824881251aa3d82ff25307dba8620176292cc0d /src/nsgenbind.c | |
parent | 6893fcf829e928881c1bd05a541b33443078ea9c (diff) | |
download | nsgenbind-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.c | 6 |
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", |