diff options
Diffstat (limited to 'extern/ceres/patches')
-rw-r--r-- | extern/ceres/patches/series | 2 | ||||
-rw-r--r-- | extern/ceres/patches/unused_parameter.patch | 13 | ||||
-rw-r--r-- | extern/ceres/patches/unused_variable.patch | 12 |
3 files changed, 27 insertions, 0 deletions
diff --git a/extern/ceres/patches/series b/extern/ceres/patches/series index e69de29bb2d..7fa3673acac 100644 --- a/extern/ceres/patches/series +++ b/extern/ceres/patches/series @@ -0,0 +1,2 @@ +unused_parameter.patch +unused_variable.patch diff --git a/extern/ceres/patches/unused_parameter.patch b/extern/ceres/patches/unused_parameter.patch new file mode 100644 index 00000000000..14969d6a19f --- /dev/null +++ b/extern/ceres/patches/unused_parameter.patch @@ -0,0 +1,13 @@ +diff --git a/extern/ceres/include/ceres/internal/autodiff.h b/extern/ceres/include/ceres/internal/autodiff.h +index 71b7bae4757..cb7b1aca5b9 100644 +--- a/include/ceres/internal/autodiff.h ++++ b/include/ceres/internal/autodiff.h +@@ -198,7 +198,7 @@ struct Make1stOrderPerturbation { + template <int N, int Offset, typename T, typename JetT> + struct Make1stOrderPerturbation<N, N, Offset, T, JetT> { + public: +- static void Apply(const T* src, JetT* dst) {} ++ static void Apply(const T* /*src*/, JetT* /*dst*/) {} + }; + + // Calls Make1stOrderPerturbation for every parameter block. diff --git a/extern/ceres/patches/unused_variable.patch b/extern/ceres/patches/unused_variable.patch new file mode 100644 index 00000000000..24a4f392962 --- /dev/null +++ b/extern/ceres/patches/unused_variable.patch @@ -0,0 +1,12 @@ +diff --git a/extern/ceres/internal/ceres/sparse_cholesky.cc b/extern/ceres/internal/ceres/sparse_cholesky.cc +index 0639ea90664..d9d2100d3f9 100644 +--- a/internal/ceres/sparse_cholesky.cc ++++ b/internal/ceres/sparse_cholesky.cc +@@ -56,6 +56,7 @@ std::unique_ptr<SparseCholesky> SparseCholesky::Create( + } + break; + #else ++ (void)ordering_type; + LOG(FATAL) << "Ceres was compiled without support for SuiteSparse."; + #endif + |