karalabe / hid

Gopher Interface Devices (USB HID)
Other
263 stars 131 forks source link

Deprecation warnings when building on macOS 12.0 #32

Closed joshfix closed 7 months ago

joshfix commented 2 years ago

When running go tests or vet, warnings pop up similar to those described here: https://github.com/karalabe/usb/issues/25

# github.com/karalabe/hid
In file included from vendor/github.com/karalabe/hid/hid_enabled.go:38:
vendor/github.com/karalabe/hid/hidapi/mac/hid.c:693:34: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
dolmen commented 2 years ago

The fix is probably in more recent versions of hidapi. See #35.

holiman commented 7 months ago

Fixed (?) with hidapi upgrade