build: Enable additional build errors and warnings
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 30 Mar 2020 19:38:47 +0000 (12:38 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 30 Mar 2020 19:38:47 +0000 (12:38 -0700)
commit95bbfb6023877ca25720f04203ef2aa2f691e995
tree66fab38659c1b0a9cbc3d4ae85b6f5cf3ce79c44
parent9a1bc8cafb904c20a869c74ad6d657686a1c4bb1
build: Enable additional build errors and warnings

Help catch more errors by enabling additional build errors and warnings.
Address some of the warnings seen with these new flags, including moving
the libusb_transfer structure back out of the usbi_transfer structure to
address 'warning: invalid use of structure with flexible array member'.
Apparently a structure ending with a flexible array member is not okay
with the compiler as the last member within another structure.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
12 files changed:
.travis.yml
configure.ac
examples/sam3u_benchmark.c
examples/xusb.c
libusb/io.c
libusb/libusbi.h
libusb/os/linux_udev.c
libusb/os/poll_windows.c
libusb/os/windows_common.c
libusb/os/windows_winusb.c
libusb/version_nano.h
travis-autogen.sh