From 88cd932203a109b8a3a062cac8ce8d32ab70e6ef Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 12 Jun 2019 13:50:55 +0200 Subject: [PATCH] fixup! Simplify Synaptics driver Ignore zreo format length warning from GCC --- libfprint/drivers/synaptics/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfprint/drivers/synaptics/util.c b/libfprint/drivers/synaptics/util.c index a0d1bb0..98672ac 100644 --- a/libfprint/drivers/synaptics/util.c +++ b/libfprint/drivers/synaptics/util.c @@ -19,6 +19,8 @@ #include "bmkt_internal.h" #include "sensor.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-zero-length" void print_buffer(uint8_t *buf, int len) { int i; @@ -33,6 +35,7 @@ void print_buffer(uint8_t *buf, int len) } bmkt_dbg_log(""); } +#pragma GCC diagnostic pop uint32_t extract32(const uint8_t *buf, int *offset) {