g-truc / glm

OpenGL Mathematics (GLM)

Home Page:https://glm.g-truc.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No unused function result warning

esnosy opened this issue · comments

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

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

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

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

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