There are quite some objections from downstream projects
to deprecate libusb_init(). In the end,
https://github.com/libusb/libusb/pull/1241
(Do not deprecate libusb_set_debug and libusb_init)
has been merged.

Therefore there is nothing to be done from the OpenOCD project.

Best regards,
Xiaofan



On Fri, Jan 27, 2023 at 9:06 AM Xiaofan Chen <xiaof...@gmail.com> wrote:
>
> Hi Antonio,
>
> LIBUSB_API_VERSION has been increased to 0x0100010A in the latest
> libusb git HEAD.
> https://github.com/libusb/libusb/commit/54350bd83fbcc9555abc57988d6fd73f3b9e9ff8
>
> The discussions are still on-going though. There are strong objections
> from avrdude developers.
> https://github.com/libusb/libusb/issues/1236
>
> Best regards,
> Xiaofan
>
>
> On Thu, Jan 26, 2023 at 7:57 PM Xiaofan Chen <xiaof...@gmail.com> wrote:
> >
> > Hi Antonio,
> >
> > Yes this will happen soon. I will send a reply to this thread once that is 
> > done.
> >
> > Best regards,
> > Xiaofan
> >
> > On Wed, Jan 25, 2023 at 10:00 PM Antonio Borneo
> > <borneo.anto...@gmail.com> wrote:
> > >
> > > Thanks for the alert.
> > >
> > > I don't see LIBUSB_API_VERSION incremented.
> > > Just forgot, or it's not supposed to change for this case?
> > >
> > > Antonio
> > >
> > > On Wed, Jan 25, 2023 at 1:26 PM Xiaofan Chen <xiaof...@gmail.com> wrote:
> > > >
> > > > With the merging of libusb PR #1026 recently, libusb_init() is now 
> > > > deprecated.
> > > >
> > > > This will cause issues with OpenOCD and libjaylink since both will
> > > > treat warnings as errors (-Werror=deprecated-declarations).
> > > >
> > > > Discussions here:
> > > > https://github.com/libusb/libusb/issues/1236
> > > >
> > > >
> > > > --
> > > > Xiaofan
> > > >

Reply via email to