Less commas

Ali Çehreli acehreli at yahoo.com
Sat Jan 1 08:44:08 PST 2011


bearophile wrote:

 > This is a little C program that compiles with no errors and not even 
warnings (with -Wall) with GCC 4.5.1:
 >
 > int main() {
 >     int x;
 >     x = 10, 20;
 >     return 0;
 > }

This is totally off topic but gcc's -Wall does not mean "all warning 
options":

   http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

I can't test it now, but -Wunused-value seems to be the option for the 
case above.

Ali


More information about the Digitalmars-d mailing list