From: Keith Packard Date: Wed, 28 Dec 2022 05:01:06 +0000 (-0800) Subject: src/drivers: Ignore printf warnings in ao_aprs.c X-Git-Tag: 1.9.13~1^2~16 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=ad4679dd0bd2d759f708a6ab6d0425eb1cbde7c1 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 --- 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. */