Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoring return value in test #74

Closed
t-hishinuma opened this issue Sep 21, 2021 · 2 comments
Closed

ignoring return value in test #74

t-hishinuma opened this issue Sep 21, 2021 · 2 comments
Milestone

Comments

@t-hishinuma
Copy link
Contributor

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 t-hishinuma added this to the 0.15.0 milestone Sep 21, 2021
@t-hishinuma
Copy link
Contributor Author

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
Copy link
Contributor Author

t-hishinuma commented Sep 22, 2021

Remove the nodiscard from the transpose() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant