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)
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
Unknown Object (File)
Aug 31 2024, 6:04 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