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:
Asriadi Rahim
2023-11-10 01:06:55 +08:00
parent d4e28ca0f6
commit bd7cf95cc1

View File

@@ -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.