#1356 loop conditionals in cornermappings have tautological compares for dim < 2
Metadata
Property | Value |
---|---|
Reported by | Rene Milk (rene.milk@uni-muenster.de) |
Reported at | Sep 19, 2013 10:24 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Rene Milk (rene.milk@uni-muenster.de) |
Last edited at | Sep 19, 2013 10:34 |
Closed by | Rene Milk (rene.milk@uni-muenster.de) |
Closed at | Sep 19, 2013 10:34 |
Closed in version | Unknown |
Resolution | Duplicate |
Comment | Indeed it is the same issue. Sorry for the noise. |
Description
in dune-geometrydune/geometry/genericgeometry/cornermapping.hh there are a bunch of loops like for( unsigned int i = 0; i < dim-1; ++i ) {}
As a result I get quite a lot of tautological compare warnings (with clang) in my application code. Simply changing the loop variable to a larger signed type feels wrong to me.