mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
OP-1798 fixed unused args warnings in ophid
This commit is contained in:
parent
9631018320
commit
b11bec1b5b
@ -1296,8 +1296,9 @@ int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *dev, int string_index
|
||||
}
|
||||
|
||||
|
||||
HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
|
||||
HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
|
||||
{
|
||||
(void)dev; // avoid unused arg warning
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ static void free_hid_device(hid_device *dev)
|
||||
|
||||
static void register_error(hid_device *device, const char *op)
|
||||
{
|
||||
(void)op; // avoid unused arg warning
|
||||
(void)op; // avoid unused arg warning
|
||||
WCHAR *ptr, *msg;
|
||||
|
||||
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||
|
@ -41,6 +41,8 @@
|
||||
*/
|
||||
void printPortInfo(struct udev_device *dev)
|
||||
{
|
||||
Q_UNUSED(dev);
|
||||
|
||||
OPHID_DEBUG(" Node: %s", udev_device_get_devnode(dev));
|
||||
OPHID_DEBUG(" Subsystem: %s", udev_device_get_subsystem(dev));
|
||||
OPHID_DEBUG(" Devtype: %s", udev_device_get_devtype(dev));
|
||||
|
Loading…
x
Reference in New Issue
Block a user