> > > Fixing warnings with bad casts is a problem, sure, but asking people
> > > to write code without casts (if possible) that will compile cleanly with
> > > -Wall is a reasonable thing to ask IMO.
> > 
> > Agreed.  But most of the new code written does indeed compile with
> > -Wall.  It's the code we've 'inherited' that doesn't.
> 
> OK, so we can review the fixes and improve things for the future.
> 
> > > In my experience, the resulting
> > > code tends to be more portable across architectures with different
> > > pointer/long sizes and endian-ness.
> > 
> > This is where I disagree.  Too often people cast away the bugs and end
> > up with overflow and sign problems.
> 
> We still have Bruce to review code for inappropriate casts etc. Try and
> stop him. 8-)

Bruce can not and should not be the *ONLY* reviewer we have.  Matt's
fixes are overwhelming even for him.



Nate

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to