lclint-interest message 53

From Thu Mar 21 12:01:26 1996
Date: Thu, 21 Mar 1996 06:19:51 -0600
From: Peter Seebach 
Subject: Re: Enumerated boolean types and printf("%lX", foo)

Well, I can tell you that (0==1) is redundant and ugly, and should be 0,
and since 0 is the first in an enum, the 0 is redundant also.  This is in
the C Faq.

As to the error, no idea how to suppress it.  :)

(The 0==1 is redundant because it is set in stone and guaranteed that it
will *always* be zero.)


Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science