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

2019-03-19 Thread Tomas Popela
Ah, good to know! Thank you Michael :)

Tom

On Tue, Mar 19, 2019 at 1:42 PM Michael Catanzaro 
wrote:

> On Tue, Mar 19, 2019 at 12:57 AM, Tomas Popela 
> wrote:
> > 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
>
> Currently we require GCC 6 to build, and if we follow our dependencies
> policy we'll be able to require GCC 7 next month, so that should be no
> problem.
>
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


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

2019-03-18 Thread Tomas Popela
Hi,

On Mon, Mar 18, 2019 at 10:40 PM Michael Catanzaro 
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
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev