commit | 0bf84e4d516c4488e5fcf4b10e3a7263c13019e1 | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 10 20:04:52 2020 +0100 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Jan 13 11:24:27 2020 -0800 |
tree | 61853e00cdae21c4599f01b06af428bbba18d712 | |
parent | a36862b192fe25f621d1559a3b3490888f34a585 [diff] |
core: fix build warning on newer versions of gcc When building libusb on a "newer" version of gcc (9.2), a lot of warnings are thrown about zero-length messages as being part of a format string. An example of this is: descriptor.c:546:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] 546 | usbi_dbg(""); | ^~ Fix this up by replacing all calls of: usbi_dbg(""); with usbi_dbg(" "); as obviously we still want to keep the implicit tracing message in the log. Closes #674 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)