emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: warnings compiling Emacs 22 on amd64


From: Francesco Potorti`
Subject: Re: warnings compiling Emacs 22 on amd64
Date: Tue, 12 Dec 2006 18:31:29 +0100

>> I looked at the gcc 4.1 info page, and I found no warnings to turn off
>> that are specific for this case (I looked for the string "compar").
>
>Yes, I believe there's no way.  Which is why I think the least bad course
>is -Wno-foo.

???

>      if (foo = bar) ...
>
>gcc warns that you may have meant == instead of =, so if you really meant =
>you can just write
>
>      if ((foo = bar)) ...

Probably this is just because it is then clear that the logical
expression is the result of the expression inside the parentheses.  I
mean, not in fact a special case for gcc.  In fact, I'd say it is good
programming practice enclosing assignments in parentheses when the
result is what you want.




reply via email to

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