Skip to content

GCC warning useless-cast #677

@Henny022

Description

@Henny022

When compiling with gcc and -Wuseless-cast, this triggers a warning (or error with -Werror).

CLI/App.hpp:2273:24: error: useless cast to type ‘class CLI::FileError’ [-Werror=useless-cast]
 2273 |             throw CLI::FileError(std::move(fe));
      |       

Just throw fe; should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions