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: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 25 May 2004 11:26:53 -0700
On Tue, May 25, 2004 at 04:54:26PM +0200, Tomas Kukosa wrote:
> I have it tried but it causes some other erros in the packet-h235.c.

As it should, given that they're arrays, not pointers.

> All other packet-*.h has it declared in
> "const value_string Xxxxxxx_vals[];" form.
> Why do not they generate warnings too?

Because the ones that aren't defining static arrays are declaring them
as

	extern const value_string Xxxxxxx_vals[];

and the "extern" suppresses at least some warnings, as per my response
to Ronnie.