boostorg / qvm

Boost Quaternions, Vectors, Matrices library
Boost Software License 1.0
81 stars 45 forks source link

unused parameter warning in zero_vec #3

Closed federkamm closed 7 years ago

federkamm commented 7 years ago

boost 1.62.0: vec_operations.hpp: line 258 and others cause "unused parameter warnings". The code reads roughly

template <int I> scalar_type read_element(this_vector const & x) {
  return 0;
}

where x is unused.

Plese either remove x from the parameter list:

... read_element(this_vector const &) { ... }

or declare as unused

... read_element( ... ) {
  (void)x;
  return 0;
}
zajo commented 7 years ago

Thanks -- done, see latest develop branch.