Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 25171: /trunk/epan/dissectors/ /trun

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 25 Apr 2008 12:40:32 -0700
Martin Mathieson wrote:

Does anyone know of a gcc flag we can add to catch cases like this? It (obviously) compiled clean on my work machine.

I have a vague memory that newer versions of GCC (4.2? 4.3?) might have a -W flag to catch implicit narrowing conversations, but I didn't see anything obvious in the 4.3 manual; I might instead be remembering a discussion that adding support for this would be a good idea, such as

	http://www.cs.berkeley.edu/~wychen/cs261/proposal.htm

or

	http://gcc.gnu.org/ml/gcc/2004-06/msg01365.html