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

No unused function result warning #1217

Closed
esnosy opened this issue Jan 15, 2024 · 3 comments · Fixed by #1252
Closed

No unused function result warning #1217

esnosy opened this issue Jan 15, 2024 · 3 comments · Fixed by #1252

Comments

@esnosy
Copy link

esnosy commented Jan 15, 2024

I'm using glm::rotate, and if I forget to use the function result somewhere in my code, the error is silent, the results will be wrong,

marking glm::rotate as [[nodiscard]] fixes it, but that needs to be done for all similar functions

@christophe-lunarg
Copy link

I like this feature request, I'll try to implement it someday soon (TM)!

@christophe-lunarg christophe-lunarg linked a pull request Feb 8, 2024 that will close this issue
@esnosy
Copy link
Author

esnosy commented Feb 9, 2024

That was quick, thanks a ton for awesome work ☺️☺️🤍

@christophe-lunarg
Copy link

That was quick, thanks a ton for awesome work ☺️☺️🤍

It's probably not exaustive but future contributions would be welcome!

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

Successfully merging a pull request may close this issue.

2 participants