From: Øyvind Harboe Date: Wed, 29 Dec 2010 21:14:43 +0000 (+0100) Subject: warning: fix warning where GCC didn't catch a doubly declared global structure X-Git-Tag: v0.5.0-rc1~252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eea91f71f918caa5e4ef571c76f60c579533b0f6;p=openocd warning: fix warning where GCC didn't catch a doubly declared global structure Why hasn't earlier versions of GCC caught this? Bug? Signed-off-by: Øyvind Harboe --- diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c index 8b922f3a..b8789a3c 100644 --- a/src/flash/nor/at91sam3.c +++ b/src/flash/nor/at91sam3.c @@ -98,7 +98,7 @@ #define offset_EFC_FRR 12 -struct flash_driver at91sam3_flash; +extern struct flash_driver at91sam3_flash; static float _tomhz(uint32_t freq_hz)