mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 17:09:46 +00:00
wahoo: usbGadget.cpp: Fix compilation unqualified call to 'std::move'
device/google/wahoo/usb/UsbGadget.cpp:577:14: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
mEpollFd = move(epollFd);
^
std::
device/google/wahoo/usb/UsbGadget.cpp:578:16: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
mInotifyFd = move(inotifyFd);
^
std::
device/google/wahoo/usb/UsbGadget.cpp:579:14: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
mEventFd = move(eventFd);
^
std::
3 warning generated.
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
This commit is contained in:
@@ -574,9 +574,9 @@ V1_0::Status UsbGadget::setupFunctions(
|
||||
|
||||
if (addEpollFd(epollFd, eventFd) == -1) return Status::ERROR;
|
||||
|
||||
mEpollFd = move(epollFd);
|
||||
mInotifyFd = move(inotifyFd);
|
||||
mEventFd = move(eventFd);
|
||||
mEpollFd = std::move(epollFd);
|
||||
mInotifyFd = std::move(inotifyFd);
|
||||
mEventFd = std::move(eventFd);
|
||||
gadgetPullup = false;
|
||||
|
||||
// Monitors the ffs paths to pull up the gadget when descriptors are written.
|
||||
|
||||
Reference in New Issue
Block a user