[webkit-dev] -Wpessimizing-move and -Wredundant-move

Tomas Popela tpopela at redhat.com
Mon Mar 18 22:57:31 PDT 2019


Hi,

On Mon, Mar 18, 2019 at 10:40 PM Michael Catanzaro <mcatanzaro at igalia.com>
wrote:

>  -Wredundant-move ("warning: redundant move in return statement") warnings.
>

If a note from
https://cgit.freedesktop.org/libreoffice/core/commit/?id=dc06c8f4989fc28d0c31ebd333e53dfe0e0f5f66
applies,
then you can't fix it until we support Ubuntu 14.04 (due to its old gcc
version):

Turns out the std::move can only be dropped if the compiler has a fix for
CWG1579. For GCC
that's the case starting with GCC 5.1

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20190319/1c3efac2/attachment.html>


More information about the webkit-dev mailing list