From 50385fa8941b58192f8955b3873a75251cde5844 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 21 Jul 2021 14:26:35 -0700 Subject: [PATCH] altos: Fixes for GCC 10 (-fno-common is default) A couple of duplicate global definitions which GCC 10 flags Signed-off-by: Keith Packard --- src/lpc/lpc.h | 2 +- src/micropeak-v2.0/ao_micro.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lpc/lpc.h b/src/lpc/lpc.h index 82f45652..1cf35dad 100644 --- a/src/lpc/lpc.h +++ b/src/lpc/lpc.h @@ -868,7 +868,7 @@ struct lpc_usb { vuint32_t introuting; uint32_t r30; vuint32_t eptoggle; -} lpc_usb; +}; extern struct lpc_usb lpc_usb; #define lpc_usb (*(struct lpc_usb *) 0x40080000) diff --git a/src/micropeak-v2.0/ao_micro.c b/src/micropeak-v2.0/ao_micro.c index 5a21d658..efab12c3 100644 --- a/src/micropeak-v2.0/ao_micro.c +++ b/src/micropeak-v2.0/ao_micro.c @@ -23,7 +23,6 @@ #include #include -uint32_t pa; alt_t ground_alt, max_alt; alt_t ao_max_height; -- 2.30.2