projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c34739
)
src/drivers: Ignore printf warnings in ao_aprs.c
author
Keith Packard
<keithp@keithp.com>
Wed, 28 Dec 2022 05:01:06 +0000
(21:01 -0800)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/drivers/ao_aprs.c
b/src/drivers/ao_aprs.c
index 3ac4cd535b231a8ac11622e5719dfe115839a202..b0645465c586ddb6e88f11f29ff37962cfc61277 100644
(file)
--- 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.
*/