Disable -Wpacked compiler flag

See issue #31. In systems with a newer version of libusb (1.0.24
onwards), GCC raises a warning that the packed attribute is unnecessary
for `libusb_control_setup`. This is not really a problem for libx52,
since it doesn't call libusb_control_setup directly, but since the
libx52 build framework treats all warnings as errors by default, it will
prevent the build from working.

This change removes the -Wpacked flag from AX_COMPILER_FLAGS, and this
should let the build pass without any issues.
reverse-scroll
nirenjan 2021-08-05 07:54:53 -07:00
parent 65f4ec9659
commit 7f5b5a2eaf
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[
-Wstrict-aliasing dnl -Wstrict-aliasing dnl
-Wshadow dnl -Wshadow dnl
-Winline dnl -Winline dnl
-Wpacked dnl dnl -Wpacked dnl
-Wmissing-format-attribute dnl -Wmissing-format-attribute dnl
-Wmissing-noreturn dnl -Wmissing-noreturn dnl
-Winit-self dnl -Winit-self dnl

View File

@ -84,7 +84,7 @@ AC_DEFUN([AX_COMPILER_FLAGS_CXXFLAGS],[
-Wstrict-aliasing dnl -Wstrict-aliasing dnl
-Wshadow dnl -Wshadow dnl
-Winline dnl -Winline dnl
-Wpacked dnl dnl -Wpacked dnl
-Wmissing-format-attribute dnl -Wmissing-format-attribute dnl
-Wmissing-noreturn dnl -Wmissing-noreturn dnl
-Winit-self dnl -Winit-self dnl