Compare commits

...

2 commits

Author SHA1 Message Date
Solomon Peachy 86abbddb60 common: Disable -Wcast-qual in the backend code.
The CFLAGS that gutenprint uses upstream causes a ton of noisy warnings
2024-12-24 09:24:21 -05:00
Solomon Peachy 8d40045692 sinfonia: Fix a (thankfully) harmless overflow in the button command 2024-12-24 09:20:47 -05:00
3 changed files with 5 additions and 2 deletions

View file

@ -37,6 +37,9 @@
#include <libusb.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
/* For Integration into gutenprint */
#if defined(HAVE_CONFIG_H)
#include <config.h>

View file

@ -824,7 +824,7 @@ int sinfonia_button_set(struct sinfonia_usbdev *dev, int enable)
if ((ret = sinfonia_docmd(dev,
(uint8_t*)&cmd, sizeof(cmd),
(uint8_t*)&cmd, sizeof(resp),
(uint8_t*)&resp, sizeof(resp),
&num))) {
return ret;
}

View file

@ -24,7 +24,7 @@
*
*/
#define LIBSINFONIA_VER "0.20"
#define LIBSINFONIA_VER "0.21"
#define SINFONIA_HDR1_LEN 0x10
#define SINFONIA_HDR2_LEN 0x64