silence unused parameter warnings in the gpu lib tree

This commit is contained in:
Axel Kohlmeyer
2024-02-06 20:18:43 -05:00
parent b9ec85427d
commit 031cef558e
7 changed files with 61 additions and 61 deletions

View File

@ -156,7 +156,7 @@ class UCL_H_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ucl_type>
inline void view(ucl_type &input, const size_t rows, const size_t cols,
const size_t stride) { view(input,rows,cols); }
const size_t /*stride*/) { view(input,rows,cols); }
/// Do not allocate memory, instead use an existing allocation from Geryon
/** This function must be passed a Geryon vector or matrix container.
@ -214,7 +214,7 @@ class UCL_H_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ptr_type>
inline void view(ptr_type *input, const size_t rows, const size_t cols,
const size_t stride, UCL_Device &dev)
const size_t stride, UCL_Device &/*dev*/)
{ view(input,rows,cols,stride); }
/// Do not allocate memory, instead use an existing allocation
@ -259,7 +259,7 @@ class UCL_H_Vec : public UCL_BaseMat {
* \param stride Number of _elements_ between the start of each row **/
template <class ucl_type>
inline void view_offset(const size_t offset,ucl_type &input,const size_t rows,
const size_t cols, const size_t stride)
const size_t cols, const size_t /*stride*/)
{ view_offset(offset,input,rows,cols); }
/// Do not allocate memory, instead use an existing allocation from Geryon
@ -382,10 +382,10 @@ class UCL_H_Vec : public UCL_BaseMat {
/// Get element at index i
inline const numtyp & operator[](const int i) const { return _array[i]; }
/// 2D access (row should always be 0)
inline numtyp & operator()(const int row, const int col)
inline numtyp & operator()(const int /*row*/, const int col)
{ return _array[col]; }
/// 2D access (row should always be 0)
inline const numtyp & operator()(const int row, const int col) const
inline const numtyp & operator()(const int /*row*/, const int col) const
{ return _array[col]; }
/// Returns pointer to memory pointer for allocation on host