Closed pratikpc closed 1 month ago
Setting parameters of an object passed by value do nothing even at GCC Og level
The advantages are purely in readability.
There are no performance gains with optimizations turned on as the compiler can prove that the values are not going to be used whatsoever.
Happens to us all LOL
Setting parameters of an object passed by value do nothing even at GCC Og level