-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GCC 13 warnings #1978
base: develop
Are you sure you want to change the base?
Fix GCC 13 warnings #1978
Conversation
Error for BearingRange.h:
|
Blocked by #1738 |
@@ -29,6 +29,7 @@ jobs: | |||
ubuntu-20.04-clang-9, | |||
ubuntu-22.04-gcc-12, | |||
ubuntu-22.04-clang-14, | |||
ubuntu-24.04-gcc-13, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably keep the pattern and add clang for ubuntu 24.04 as well.
@@ -9,6 +9,10 @@ | |||
#include <gtsam/geometry/FundamentalMatrix.h> | |||
#include <gtsam/geometry/Point2.h> | |||
|
|||
#ifdef __GNUC__ | |||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the simplest solution for now, but it is nice that in Eigen 3.4 the SVD implementations have an info()
method that can be used to check it and fix the uninitialized warning.
Eigen::JacobiSVD<Matrix3> svd(F, Eigen::ComputeFullU | Eigen::ComputeFullV);
if (svd.info() != Eigen::ComputationInfo::Success) {
throw std::runtime_error("FundamentalMatrix::FundamentalMatrix unsuccessful svd computation");
}
Fixes #1967. Adds Ubuntu 24.04 with GCC 13 to the CI matrix so we can catch this on GitHub's CI.