aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-11-23 13:51:50 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2017-11-23 13:52:28 -0500
commitf45e2a7704c738ba8195a667f910297c4155924e (patch)
treef838d2e110d1909570a202c9bfa5b62040e5a032 /gas
parentbd046f64a193405f2fef2d5120fab4be25feaa8b (diff)
downloadgdb-f45e2a7704c738ba8195a667f910297c4155924e.zip
gdb-f45e2a7704c738ba8195a667f910297c4155924e.tar.gz
gdb-f45e2a7704c738ba8195a667f910297c4155924e.tar.bz2
Fix clang warnings about copy elision
When building with clang, I get: /home/emaisin/src/binutils-gdb/gdb/osdata.c:107:9: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] std::move (std::string (body_text))); ^ /home/emaisin/src/binutils-gdb/gdb/osdata.c:107:9: note: remove std::move call here std::move (std::string (body_text))); ^~~~~~~~~~~ ~ /home/emaisin/src/binutils-gdb/gdb/osdata.c:181:10: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move] return std::move (osdata); ^ /home/emaisin/src/binutils-gdb/gdb/osdata.c:181:10: note: remove std::move call here return std::move (osdata); ^~~~~~~~~~~ ~ Indeed, those two std::move are unnecessary. gdb/ChangeLog: * osdata.c (osdata_end_column, get_osdata): Remove std::move.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions