summaryrefslogtreecommitdiff
path: root/src/flash/nor
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-12-29 22:14:43 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-12-29 22:14:43 +0100
commiteea91f71f918caa5e4ef571c76f60c579533b0f6 (patch)
tree4f6c20b2b4b6e33ace3e2243811d18fcc4e6876b /src/flash/nor
parent4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7 (diff)
downloadopenocd+libswd-eea91f71f918caa5e4ef571c76f60c579533b0f6.tar.gz
openocd+libswd-eea91f71f918caa5e4ef571c76f60c579533b0f6.tar.bz2
openocd+libswd-eea91f71f918caa5e4ef571c76f60c579533b0f6.tar.xz
openocd+libswd-eea91f71f918caa5e4ef571c76f60c579533b0f6.zip
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 <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor')
-rw-r--r--src/flash/nor/at91sam3.c2
1 files changed, 1 insertions, 1 deletions
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)