Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Snowcrash build warnings about missing std::move #693

Open
kylef opened this issue May 8, 2019 · 0 comments
Open

Snowcrash build warnings about missing std::move #693

kylef opened this issue May 8, 2019 · 0 comments

Comments

@kylef
Copy link
Member

kylef commented May 8, 2019

../drafter/ext/snowcrash/src/UriTemplateParser.cc:82:16: warning: local variable 'variableExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return variableExpression;
               ^~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:82:16: note: call 'std::move' explicitly to avoid copying
        return variableExpression;
               ^~~~~~~~~~~~~~~~~~
               std::move(variableExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:87:16: warning: local variable 'queryStringExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return queryStringExpression;
               ^~~~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:87:16: note: call 'std::move' explicitly to avoid copying
        return queryStringExpression;
               ^~~~~~~~~~~~~~~~~~~~~
               std::move(queryStringExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:92:16: warning: local variable 'fragmentExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return fragmentExpression;
               ^~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:92:16: note: call 'std::move' explicitly to avoid copying
        return fragmentExpression;
               ^~~~~~~~~~~~~~~~~~
               std::move(fragmentExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:97:16: warning: local variable 'reservedExpansionExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return reservedExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:97:16: note: call 'std::move' explicitly to avoid copying
        return reservedExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
               std::move(reservedExpansionExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:102:16: warning: local variable 'labelExpansionExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return labelExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:102:16: note: call 'std::move' explicitly to avoid copying
        return labelExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~
               std::move(labelExpansionExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:107:16: warning: local variable 'pathSegmentExpansionExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return pathSegmentExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:107:16: note: call 'std::move' explicitly to avoid copying
        return pathSegmentExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               std::move(pathSegmentExpansionExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:112:16: warning: local variable 'pathSegmentExpansionExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return pathSegmentExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:112:16: note: call 'std::move' explicitly to avoid copying
        return pathSegmentExpansionExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               std::move(pathSegmentExpansionExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:117:16: warning: local variable 'formStyleQueryContinuationExpression' will be copied despite being returned by name [-Wreturn-std-move]
        return formStyleQueryContinuationExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:117:16: note: call 'std::move' explicitly to avoid copying
        return formStyleQueryContinuationExpression;
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               std::move(formStyleQueryContinuationExpression)
../drafter/ext/snowcrash/src/UriTemplateParser.cc:122:12: warning: local variable 'undefinedExpression' will be copied despite being returned by name [-Wreturn-std-move]
    return undefinedExpression;
           ^~~~~~~~~~~~~~~~~~~
../drafter/ext/snowcrash/src/UriTemplateParser.cc:122:12: note: call 'std::move' explicitly to avoid copying
    return undefinedExpression;
           ^~~~~~~~~~~~~~~~~~~
           std::move(undefinedExpression)
9 warnings generated.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant