[Top][All Lists]
[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.
- Re: warnings compiling Emacs 22 on amd64, (continued)
- Re: warnings compiling Emacs 22 on amd64, Francesco Potorti`, 2006/12/11
- Re: warnings compiling Emacs 22 on amd64, Eli Zaretskii, 2006/12/11
- Re: warnings compiling Emacs 22 on amd64, Stefan Monnier, 2006/12/11
- Re: warnings compiling Emacs 22 on amd64, Eli Zaretskii, 2006/12/11
- Re: warnings compiling Emacs 22 on amd64, Stefan Monnier, 2006/12/11
- Re: warnings compiling Emacs 22 on amd64, Eli Zaretskii, 2006/12/12
- Re: warnings compiling Emacs 22 on amd64, Francesco Potorti`, 2006/12/12
- Re: warnings compiling Emacs 22 on amd64, Stefan Monnier, 2006/12/12
- Re: warnings compiling Emacs 22 on amd64, Francesco Potorti`, 2006/12/12
- Re: warnings compiling Emacs 22 on amd64, Stefan Monnier, 2006/12/12
- Re: warnings compiling Emacs 22 on amd64,
Francesco Potorti` <=
- Re: warnings compiling Emacs 22 on amd64, Stefan Monnier, 2006/12/12
- Re: warnings compiling Emacs 22 on amd64, Francesco Potorti`, 2006/12/12