diff options
author | naur@post11.tele.dk <unknown> | 2010-04-03 18:23:55 +0000 |
---|---|---|
committer | naur@post11.tele.dk <unknown> | 2010-04-03 18:23:55 +0000 |
commit | 0f73f6ce53db8a56923062b84af4bb304b58d376 (patch) | |
tree | e1762efa905bd4b83c274a282b1aa1919cab773a | |
parent | c970ab42e9abaf91c35e167acf1b8fe0e9e61dbd (diff) | |
download | haskell-0f73f6ce53db8a56923062b84af4bb304b58d376.tar.gz |
Fix warning compiling Linker.c for PPC Mac
The warning message eliminated is:
> rts/Linker.c:4756:0:
> warning: nested extern declaration of 'symbolsWithoutUnderscore'
-rw-r--r-- | rts/Linker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index d84e4f7521..3ba598f1ba 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -4751,9 +4751,10 @@ static int ocResolve_MachO(ObjectCode* oc) * Yuck. */ +extern void* symbolsWithoutUnderscore[]; + static void machoInitSymbolsWithoutUnderscore() { - extern void* symbolsWithoutUnderscore[]; void **p = symbolsWithoutUnderscore; __asm__ volatile(".globl _symbolsWithoutUnderscore\n.data\n_symbolsWithoutUnderscore:"); |