7 msgUpdating an operand in RTL for a builtin function
4 msgExpression with 2 operations
6 msgGCC 4.1: Problem with old-loop and REG_EQUAL notes
12 msgbugzilla broken?

Always generate warning/error for assignment as...
\ Ching, Jimen \(US SSA\) (2 May 2007)

17 msgGCC 4.2.0 RC3 Available
1 msgSuccessful build of 4.2.0 RC2 for target=avr ho...
4 msg__ffssi2 not exported in libgcc_s.so
4 msgBootstrap comparison differnce(s) on cygwin wit...
1 msgStrange timings on nocona/prescott with indirec...
2 msgwhere tokens are generated
2 msgBootstrap failure on i386-unknown-freebsd6.2: c...
1 msgHow to generate x86 seto/sets instructions?
6 msgBackport fix for spurious anonymous ns warnings...
2 msgGCC 4.2 RC2 Available
1 msgsome 4.2.0 RC2 test results
3 msgCygwin build documentation error.
15 msgInformation about LTO
10 msgRe: 2nd quarter of 2007 and no GPL code of Java...
1 msggcc-4.1-20070430 is now available
Subject:Always generate warning/error for assignment as truth value
Group:Gcc
From:Ching, Jimen \(US SSA\)
Date:2 May 2007


Hi,

I was wondering if there's an option to gcc/g++ to make it generate a
warning/error when an assignment is used as a truth value in an
expression.
The -Wall option does this. But it can be silenced with parentheses.
The problem is, macros often use parentheses around expressions. Thus,
this warning is silenced for macros.

Perhaps, in a macro, double parentheses are needed could solve this
problem.

--jc
--
BAE Systems NS I&S
810 Richards Street, Ste. 124
Honolulu, HI 96813
Phone: 808 441-2563


© 2004-2008 readlist.com