diff options
author | Gerald Combs <gerald@wireshark.org> | 2019-12-20 09:27:36 -0800 |
---|---|---|
committer | Graham Bloice <graham.bloice@trihedral.com> | 2019-12-26 10:32:37 +0000 |
commit | f0be7f27d862a5f460b398693fe4731e7ed87aa8 (patch) | |
tree | ff0f4c04136b032882e3ff000c1d936601bad32f /tools | |
parent | aebe01806169f5974c76b00d7408d56ea2e887a4 (diff) |
Lemon: Squelch an unused parameter warning.
Fixes
... tools\lemon\lemon.c(1630,14): warning C4100: 'argc': unreferenced formal parameter ...
Change-Id: I5cddbbed025e246ddebe9189edbe6fbeea883a7d
Reviewed-on: https://code.wireshark.org/review/35522
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lemon/lemon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c index ce4e364ba5..4a55f00661 100644 --- a/tools/lemon/lemon.c +++ b/tools/lemon/lemon.c @@ -1627,7 +1627,7 @@ static void stats_line(const char *zLabel, int iValue){ } /* The main program. Parse the command line and do it... */ -int main(int argc, char **argv) + int main(int argc, char **argv) { static int version = 0; static int rpflag = 0; @@ -1639,6 +1639,8 @@ int main(int argc, char **argv) static int nolinenosflag = 0; static int noResort = 0; + (void) argc; /* Mark unused, similar to Q_UNUSED */ + static struct s_options options[] = { {OPT_FLAG, "b", (char*)&basisflag, "Print only the basis in report."}, {OPT_FLAG, "c", (char*)&compress, "Don't compress the action table."}, |