From: Keith Packard Date: Wed, 21 Jul 2021 21:26:35 +0000 (-0700) Subject: altos: Fixes for GCC 10 (-fno-common is default) X-Git-Tag: 1.9.8~1^2~43 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=50385fa8941b58192f8955b3873a75251cde5844;p=fw%2Faltos altos: Fixes for GCC 10 (-fno-common is default) A couple of duplicate global definitions which GCC 10 flags Signed-off-by: Keith Packard --- 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;