fixed: up to 3 cells are added, so resize to 3 to avoid oob warnings#996
fixed: up to 3 cells are added, so resize to 3 to avoid oob warnings#996akva2 wants to merge 1 commit intoOPM:masterfrom
Conversation
|
jenkins build this please |
1c62b6b to
99a637e
Compare
|
hmm, did not improve things. |
use std::vector. not sure what gcc is complaining about here
99a637e to
41ad4ac
Compare
|
jenkins build this please |
|
this is the only way i could make it shut up. i also note that we cannot use the constrained algorithm since weak_ordering fails for the EntityRep. |
Tangential note and I don't know if it's related, but for what it's worth, Issue #505 happened to be in the same area. |
|
Then maybe try if #935 fixes this? |
|
it does not, with that PR it still goes chatty; |
|
your comment apparently disappeared, but I have not triggered any runtime issues, it's just trying to address the compiler warning. |
|
I deleted it, because I realized that it is not at runtime. Isn't this a false positive as at the place were gcc actually warns (EntityRep::index()) there is no array subscript? There have been quite a few of those for other libraries, too. I also did not find a way how 3 cells could be added here, but I might have missed something... |
also, use std::array
i'm not entirely sure if this is the correct fix or if there is a logic error here, but it definitely is wrong as-is.