From ad4679dd0bd2d759f708a6ab6d0425eb1cbde7c1 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 27 Dec 2022 21:01:06 -0800 Subject: [PATCH] src/drivers: Ignore printf warnings in ao_aprs.c This code uses sprintf to generate the tnc buffer, but the compiler doesn't really understand the value limits. Signed-off-by: Keith Packard --- src/drivers/ao_aprs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/ao_aprs.c b/src/drivers/ao_aprs.c index 3ac4cd53..b0645465 100644 --- a/src/drivers/ao_aprs.c +++ b/src/drivers/ao_aprs.c @@ -310,6 +310,7 @@ static uint8_t tncBitStuff; /// Buffer to hold the message portion of the AX.25 packet as we prepare it. static uint8_t tncBuffer[TNC_BUFFER_SIZE]; +#pragma GCC diagnostic ignored "-Wformat-overflow=" /** * Initialize the TNC internal variables. */ -- 2.30.2