On Wed, Feb 08, 2006 at 03:58:59PM -0800, David S. Miller wrote: > From: Herbert Xu <[EMAIL PROTECTED]> > Date: Thu, 09 Feb 2006 10:49:37 +1100 > > > The difference between gcc -pedantic and sparse is that it doesn't > > warn about obviously correct cases like p != 0 or p = 0. > > So obviously correct that you left out an equals sign in the > second case :-)
Actually I intended that to be an assignment as this is something that has generated many sparse patches. Now if this was a comparison mistakenly written as an assignment, gcc would pick it up anyway: a.c:3: warning: suggest parentheses around assignment used as truth value Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html