src/drivers: Ignore printf warnings in ao_aprs.c
authorKeith Packard <keithp@keithp.com>
Wed, 28 Dec 2022 05:01:06 +0000 (21:01 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 28 Dec 2022 05:01:06 +0000 (21:01 -0800)
This code uses sprintf to generate the tnc buffer, but the compiler doesn't
really understand the value limits.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_aprs.c

index 3ac4cd535b231a8ac11622e5719dfe115839a202..b0645465c586ddb6e88f11f29ff37962cfc61277 100644 (file)
@@ -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.
  */