[Bug c/38046] 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons

2010-02-24 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2010-02-24 14:29 --- I am really sorry, I don't think we want to add an option for this particular case. As Joseph explained, there is a difference if the variables are mismatched signed/unsigned or not. For your problem, you could use a

[Bug c/38046] 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons

2008-11-07 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-11-07 17:14 --- (In reply to comment #2) Subject: Re: New: 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons On Fri, 7 Nov 2008, edwintorok at gmail dot com wrote: Consider this

[Bug c/38046] 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons

2008-11-07 Thread joseph at codesourcery dot com
--- Comment #2 from joseph at codesourcery dot com 2008-11-07 12:46 --- Subject: Re: New: 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons On Fri, 7 Nov 2008, edwintorok at gmail dot com wrote: Consider this code: int foo(int a,

[Bug c/38046] 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons

2008-11-07 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-11-07 11:26 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added