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-Url: https://git.gag.com/?a=commitdiff_plain;h=eea91f71f918caa5e4ef571c76f60c579533b0f6;p=fw%2Fopenocd 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 8b922f3a7..b8789a3cb 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)