Page MenuHomeFreeBSD

libdevdctl: g++9 avoid Wdeprecated-copy
ClosedPublic

Authored by rlibby on Dec 20 2019, 6:30 AM.
Tags
None
Referenced Files
F105953153: D22887.diff
Mon, Dec 23, 1:24 AM
Unknown Object (File)
Tue, Dec 3, 4:25 PM
Unknown Object (File)
Tue, Dec 3, 4:25 PM
Unknown Object (File)
Tue, Dec 3, 4:23 PM
Unknown Object (File)
Tue, Dec 3, 4:07 PM
Unknown Object (File)
Oct 5 2024, 4:06 AM
Unknown Object (File)
Sep 15 2024, 1:30 PM
Unknown Object (File)
Sep 5 2024, 1:52 PM
Subscribers

Details

Summary

g++9 now warns about having defined an assignment operator but using the
default copy constructor, or vice versa. Avoid the issue in libdevdctl
by just using the default assignment operator too.

Test Plan

make CROSS_TOOLCHAIN=amd64-gcc9 buildworld

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28251
Build 26370: arc lint + arc unit