Skip to content

redundant move in return statement [-Wredundant-move] #533

@CoinFuMasterShifu

Description

@CoinFuMasterShifu

Please remove the std::move(...) in here. gcc 14.2 warns about it:

   19 |     return std::move(_errors[0].what());
      |            ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../include/rfl/generic/../parsing/to_single_error_message.hpp:19:21: note: remove 'std::move' call
In file included from ../include/sqlgen/../sqlgen/Iterator.hpp:13,
                 from ../include/sqlgen/../sqlgen.hpp:6:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions