Fix errors found by -Werror "'const' type qualifier on return type has no effect" is one of the errors, and an unused parameter for another. Change-Id: Ib4bc245d992c1fc1bea0b25d5396871ca1df8411
diff --git a/internal/ceres/compressed_row_sparse_matrix.h b/internal/ceres/compressed_row_sparse_matrix.h index 0a1b945..e4eb985 100644 --- a/internal/ceres/compressed_row_sparse_matrix.h +++ b/internal/ceres/compressed_row_sparse_matrix.h
@@ -140,7 +140,7 @@ const int* rows() const { return &rows_[0]; } int* mutable_rows() { return &rows_[0]; } - const StorageType storage_type() const { return storage_type_; } + StorageType storage_type() const { return storage_type_; } void set_storage_type(const StorageType storage_type) { storage_type_ = storage_type; }
diff --git a/internal/ceres/evaluation_callback_test.cc b/internal/ceres/evaluation_callback_test.cc index 0ca2625..19a7eb5 100644 --- a/internal/ceres/evaluation_callback_test.cc +++ b/internal/ceres/evaluation_callback_test.cc
@@ -254,7 +254,7 @@ counter_ += 1.0; } - const double counter() const { return counter_; } + double counter() const { return counter_; } private: double counter_ = -1;
diff --git a/internal/ceres/suitesparse.h b/internal/ceres/suitesparse.h index 5dcc53f..23f539d 100644 --- a/internal/ceres/suitesparse.h +++ b/internal/ceres/suitesparse.h
@@ -332,7 +332,7 @@ return false; } - void Free(void* arg) {} + void Free(void* /*arg*/) {} }; } // namespace internal