fix maybe unitialized warning#2033
Conversation
|
Hmm, actually I wonder if this would actually fix the problem? Is GCC that smart? |
I was able to test on two different computers with Ubuntu 24.04. I get the warning without the GCC preamble. With the code addition, it builds successfully with no warning. |
|
This commit seems to break the build of our nightly packages: |
|
The broken build is on an arm64 device running Ubuntu 20.04 (focal fossey). Not sure why I have not seen broken build messages for amd64, but that could still come. |
Yes, this can happen if you chose not to use the Eigen version that comes with gtsam. I'll put in a PR to fix this issue soon. |
This fixes the maybe uninitialized warning by checking the output of svd.