Ethereal-dev: Re: [Ethereal-dev] Re: [Ethereal-cvs] rev 15286: /trunk/gtk/:capture_prefs.c col

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

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Thu, 11 Aug 2005 03:43:15 +0200
On Wed, Aug 10, 2005 at 04:30:16PM -0700, Guy Harris wrote:
> Yes, but the question is *which* warning?

Oops, sorry. I'd prefer the "cast discards qualifier" warning because
it indicates a developer looked into the thing and willingly did the
cast. In time this should only be necessary with external library
calls though :-)

> is arguably better (as in "quieter with some compilers") than

Yes.

> *Both* will generate a warning with some compilers.  The first of those
> might generate no warning with some compilers that will generate a warning
> with the second of those.

I prefer the explicit cast anyway.

 ciao
    Joerg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.