Re: [cc65] bug?

From: Groepaz <groepaz1gmx.net>
Date: 2009-08-26 21:35:48
On Mittwoch 26 August 2009, Ullrich von Bassewitz wrote:
> On Wed, Aug 26, 2009 at 08:10:01PM +0200, Groepaz wrote:
> > gcc (with -Wall) gives
> >
> > "warning: suggest parentheses around comparison in operand of &"
> >
> > on that snippet ... which is very helpful imho :)
>
> Sorry, this sort of warning needs explicit expression trees. What I can do
> is to emit a warning if the compiler detects an operation with two constant
> values. There are many cases however, where this is intended.

yeah, that wouldnt be terribly useful probably (the easy cases are mostly 
obvious anyway, its cases like the one here where stuff easily is overlooked)

btw while i am at it... there is another warning i am missing:

int foo(void)
{
}

gcc gives "warning: control reaches end of non-void function" on this, would 
that be possible ?

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Irren ist menschlich. Aber wer richtigen Mist bauen will, braucht einen 
Computer.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Aug 26 21:35:50 2009

This archive was generated by hypermail 2.1.8 : 2009-08-26 21:35:53 CEST