Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/GtsamBuildTypes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ else()
-Wall # Enable common warnings
-Wpedantic # Enable pedantic warnings
$<$<COMPILE_LANGUAGE:CXX>:-Wextra -Wno-unused-parameter> # Enable extra warnings, but ignore no-unused-parameter (as we ifdef out chunks of code)
$<$<CXX_COMPILER_ID:GNU>:-Wno-psabi> # GCC 10 emits non-actionable psABI notes for some value-returning wrappers under C++17
$<$<CXX_COMPILER_ID:GNU>:-Wreturn-local-addr> # Error: return local address
$<$<CXX_COMPILER_ID:Clang>:-Wreturn-stack-address> # Error: return local address
$<$<CXX_COMPILER_ID:Clang>:-Wno-weak-template-vtables> # TODO(dellaert): don't know how to resolve
Expand Down
4 changes: 2 additions & 2 deletions gtsam/base/Manifold.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ template<class Class, int N>
struct GetDimensionImpl {
// Get dimension at compile-time for fixed-size manifolds, and at
// run-time for dynamic-size manifolds.
static int GetDimension(const Class& m) {
static size_t GetDimension(const Class& m) {
if constexpr (N == Eigen::Dynamic) {
return m.dim();
} else {
return N;
return static_cast<size_t>(N);
}
}
};
Expand Down
Loading
Loading