Ethereal-dev: Re: [Ethereal-dev] H235 & ASN1 compiler

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Fri, 28 May 2004 11:23:42 +0200

On Tue, May 25, 2004 at 11:23:54AM -0700, Guy Harris wrote:

../packet-h235.c: In function `dissect_h235_NULL':
../packet-h235.c:556: warning: unused parameter `pinfo'


For that one, the translator could perhaps figure out whether an
argument is used and emit _U_ after it if so - but, as the dissectors
are all machine-generated, and as the argument can't be omitted as a
pointer to that function is used, the translator can probably just emit
_U_ for *all* "pinfo" arguments, and perhaps for *all* arguments.

The argument can be used with user defined code in the dissector function.
What happens if the _U_ is emitted and the parameter is used in the function?