Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 7778] Unable to compile stock lemon.c due to errors.

Date: Mon, 1 Oct 2012 10:39:57 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7778

--- Comment #1 from Guy Harris <guy@xxxxxxxxxxxx> 2012-10-01 10:39:56 PDT ---
_U_ is there to prevent "unused parameter" warnings in routines that have a
fixed signature (so you can't just get rid of the parameter) but that, for
whatever reason, don't need to use the parameter.  You'll get a *ton* of those
errors if you try to compile any of Wireshark's .c files by hand without
somehow arranging that _U_ be defined either as nothing (if your compiler has
no way of saying "this parameter doesn't need to be used) or as the appropriate
"this doesn't need to be used" tag (if your compiler does have a way of saying
that, as GCC and GCC-compatible compilers do).

For main(), there may be a reason why optinit() looks for a NULL argument
pointer rather than using argc; if not, the problem could also be handled by
passing on the count to optinit() and having optinit() use the count.  If so,
we're somewhat stuck if we want to suppress the warning.

For resolve_conflict(), perhaps in older versions of Lemon (whether Wireshark
ever used them or not) resolve_conflict() used errsym, but it no longer does
so.  If so, Lemon (i.e., the one maintained at the SQLite project, not just our
version) should get rid of that parameter and stop passing it.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.