From eea91f71f918caa5e4ef571c76f60c579533b0f6 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Wed, 29 Dec 2010 22:14:43 +0100 Subject: warning: fix warning where GCC didn't catch a doubly declared global structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Why hasn't earlier versions of GCC caught this? Bug? Signed-off-by: Øyvind Harboe --- src/flash/nor/at91sam3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flash/nor') 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) -- cgit v1.2.3-18-g5258