Skip to content

Conversation

@computezrmle
Copy link

toml.h is used here:
https://github.com/BOINC/boinc/tree/master/samples/docker_wrapper

When compiled on Linux with gcc 14.2.1 the warning below is shown.
This modification avoids the warning.

In file included from docker_wrapper.cpp:91:
toml.h: In function ‘toml::ParseResult toml::parse(std::istream&)’:
toml.h:390:47: warning: redundant move in initialization [-Wredundant-move]
  390 |     return ParseResult(std::move(v), std::move(parser.errorReason()));
      |                                      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
toml.h:390:47: note: remove ‘std::move’ call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant