Avoid moving a return value, it might prevent (N)RVO#183
Avoid moving a return value, it might prevent (N)RVO#183
Conversation
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Codecov Report
@@ Coverage Diff @@
## ign-math6 #183 +/- ##
==========================================
Coverage 99.19% 99.19%
==========================================
Files 61 61
Lines 5982 5982
==========================================
Hits 5934 5934
Misses 48 48
Continue to review full report at Codecov.
|
chapulina
left a comment
There was a problem hiding this comment.
Thanks for catching that. We should enable more warnings on our Jenkins CI builds. Or maybe they'll already be enabled once we move CI to Focal.
It may be a combination of both things, the focal build already has some warnings in the logs that aren't being captured + current focal CI is using GCC 8 and I'm using the default Ubuntu Focal compiler (gcc 9.3.0). The |
I'm building in Focal, this PR fixes some "-Wno-pessimizing-move" warnings (which does not happen with the gcc version in Bionic).
From here: