Closed geerlingguy closed 4 years ago
same warning on Linux.
sudo ./rpiboot
works even after this warning
user@host:~/usbboot$ make
cc -Wall -Wextra -g -o bin2c bin2c.c
./bin2c msd/bootcode.bin msd/bootcode.h
./bin2c msd/start.elf msd/start.h
cc -Wall -Wextra -g -o rpiboot main.c -lusb-1.0
main.c: In function ‘main’:
main.c:620:2: warning: ‘libusb_set_debug’ is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations]
libusb_set_debug(ctx, verbose ? LIBUSB_LOG_LEVEL_WARNING : 0);
^~~~~~~~~~~~~~~~
In file included from main.c:1:
/usr/include/libusb-1.0/libusb.h:1300:18: note: declared here
void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
^~~~~~~~~~~~~~~~
My OS:
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
PRs welcome
Was it fixed or is it still open for a PR?
I'd say the timing makes that fairly obvious - the code has not been changed.
Hi @geerlingguy could you verify it please?
Did you notice #55?
@pelwell No, didn't until just now. Whatever fixes it is great for me; I'm just used to following an issue and wanted to make sure to get something in place before I forgot about it since this issue is closed :)
I've never had to choose between two competing PRs before! If you can see something wrong with #55 then please say so, otherwise it is likely to get merged once @ghollingworth has a moment.
@pelwell it also resolves the deprecation warning, and I don't have any particular opinion on the verbosity levels (I just hate seeing warnings in my terminal ;)—so please merge #55 as long as everything else is okay, and close #56.
Running this with the latest version of
libusb
on my Mac, I got the following warning (no error, through) when runningmake
: