ricosjp / monolish

monolish: MONOlithic LInear equation Solvers for Highly-parallel architecture
Apache License 2.0
197 stars 12 forks source link

ignoring return value in test #74

Closed t-hishinuma closed 3 years ago

t-hishinuma commented 3 years ago
matrix_transpose.cpp:60:3: warning: ignoring return value of 'monolish::matrix::COO<Float>& monolish::matrix::COO<Float>::transpose() [with Float = double]', declared with attribute nodiscard [-Wunused-result]
   60 |   A.transpose();
t-hishinuma commented 3 years ago
matrix_common.cpp:79:5: warning: ignoring return value of 'monolish::matrix::COO<Float>& monolish::matrix::COO<Float>::transpose() [with Float = double]', declared with attribute nodiscard [-Wunused-result]
   79 |     transposed_COO1.transpose();
t-hishinuma commented 3 years ago

Remove the nodiscard from the transpose() function.