Page MenuHomeFreeBSD

libdevdctl: g++9 avoid Wdeprecated-copy
ClosedPublic

Authored by rlibby on Dec 20 2019, 6:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 9:24 PM
Unknown Object (File)
Thu, Dec 26, 7:06 AM
Unknown Object (File)
Mon, Dec 23, 11:06 AM
Unknown Object (File)
Mon, Dec 23, 1:24 AM
Unknown Object (File)
Dec 3 2024, 4:25 PM
Unknown Object (File)
Dec 3 2024, 4:25 PM
Unknown Object (File)
Dec 3 2024, 4:23 PM
Unknown Object (File)
Dec 3 2024, 4:07 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable