Home
last modified time | relevance | path

Searched hist:"81 e554c87de45de05c2d7be4bda18ac48deadcb5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-power/test/
H A Dfile_descriptor_tests.cppdiff 81e554c87de45de05c2d7be4bda18ac48deadcb5 Wed May 31 21:56:07 CDT 2023 Patrick Williams <patrick@stwcx.xyz> tests: adjust self-copy tests

There are a couple tests which attempt to copy an object onto itself via
a `std::move`. GCC 13 catches this as a "move onto self" and flags it
as an error. Rather than use the `std::move`, perform a static_cast
into an r-value reference so that the same copy-constructor is called
as if the std::move were successfully used.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I097889578492b1a3ab456e8cb21a668aa0855be4