[cc65] Warning: Result of comparison is constant

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2010-11-28 18:41:43
Hallo,
is it possible to get rid of the warning in <subject>?

Constant comparison really has its uses - for example, static asserts...

Example:
#define STATIC_ASSERT(expr) switch(0) { case 0: case (expr): ; }
STATIC_ASSERT(sizeof(myarray) == ENUM_COUNT);

I really like to be able to build without warnings.

Regards,
Johan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Nov 28 18:42:12 2010

This archive was generated by hypermail 2.1.8 : 2010-11-28 18:42:14 CET