tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Small patch


From: Vincent Lefevre
Subject: Re: [Tinycc-devel] Small patch
Date: Thu, 31 Jan 2013 13:59:31 +0100
User-agent: Mutt/1.5.21-6294-vl-r57845 (2013-01-23)

On 2013-01-31 13:22:22 +0100, grischka wrote:
> Vincent Lefevre wrote:
> >Perhaps there was a "default:" by default the author forgot to remove.
> >And as it is probably just useless (if op can only be '&', '|' or '^'),
> >no-one noticed it.
> 
> I guess it was to avoid a compiler warning such as
>       "case X not handled in switch"

In such a case, a "default:" at the end with an assertion failure
would have been better.

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]