mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 17:10:38 +08:00
Fix unused parameter compiler warnings in numeric_diff.h
Change-Id: I2b35babba17229387c6d346c46a2c6960db96e47
This commit is contained in:
@@ -204,6 +204,15 @@ struct NumericDiff<CostFunctor, kMethod, kNumResiduals,
|
||||
const int parameter_block_size,
|
||||
double **parameters,
|
||||
double *jacobian) {
|
||||
// Silence unused parameter compiler warnings.
|
||||
(void)functor;
|
||||
(void)residuals_at_eval_point;
|
||||
(void)relative_step_size;
|
||||
(void)num_residuals;
|
||||
(void)parameter_block_index;
|
||||
(void)parameter_block_size;
|
||||
(void)parameters;
|
||||
(void)jacobian;
|
||||
LOG(FATAL) << "Control should never reach here.";
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user