hanwen / go-mtpfs

Mount MTP devices over FUSE
Other
683 stars 85 forks source link

Cannot build on Fedora 31 #144

Closed oukb closed 4 years ago

oukb commented 4 years ago

Could you help me to build for Fedora 31

# go build ./
# github.com/hanwen/usb
cgo-gcc-prolog: In function ‘_cgo_afe072e410cc_Cfunc_libusb_set_debug’:
cgo-gcc-prolog:662:2: warning: ‘libusb_set_debug’ is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations]
In file included from /root/go/pkg/mod/github.com/hanwen/usb@v0.0.0-20141217151552-69aee4530ac7/usb.go:8:
/usr/include/libusb-1.0/libusb.h:1300:18: note: declared here
 1300 | void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
      |                  ^~~~~~~~~~~~~~~~
# github.com/hanwen/go-mtpfs/fs
fs/fs.go:578:7: k declared and not used
fs/fs.go:578:10: v declared and not used

libusbx-1.0.22-4.fc31.x86_64 libusbx-devel-1.0.22-4.fc31.x86_64 golang-1.13.5-1.fc31.x86_64 golang-src-1.13.5-1.fc31.noarch golang-bin-1.13.5-1.fc31.x86_64

hanwen commented 4 years ago

whoops, thanks.

fixed in 42254b1935eb89625d0c8b61bb8128db2cd3c22f