Skip to content

Fix compiler warning#56

Open
computezrmle wants to merge 1 commit intomayah:masterfrom
computezrmle:fix_compiler_warning
Open

Fix compiler warning#56
computezrmle wants to merge 1 commit intomayah:masterfrom
computezrmle:fix_compiler_warning

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