[Bug c++/66590] New: switch statement: incorrect warning "reaches end of non-void function"

2015-06-18 Thread brutus at free dot fr
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: brutus at free dot fr Target Milestone: --- Created attachment 35803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35803&action=edit code snippet generated

[Bug c++/45464] Warning missing using -Wall when comparing unsigned int and sum of unsigned chars.

2010-08-31 Thread brutus at free dot fr
--- Comment #1 from brutus at free dot fr 2010-08-31 13:53 --- There is a small mystake to the snippet, it should read instead: int main() { unsigned char a = 0; unsigned int b = 0; bool test1 =( b < a + a); bool test2 =( b < a + a + a); if (test1 && t

[Bug c++/45464] New: Warning missing using -Wall when comparing unsigned int and sum of unsigned chars.

2010-08-31 Thread brutus at free dot fr
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: brutus at free dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45464