From: naur@post11.tele.dk Date: Sat, 3 Apr 2010 18:23:55 +0000 (+0000) Subject: Fix warning compiling Linker.c for PPC Mac X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=0f73f6ce53db8a56923062b84af4bb304b58d376 Fix warning compiling Linker.c for PPC Mac The warning message eliminated is: > rts/Linker.c:4756:0: > warning: nested extern declaration of 'symbolsWithoutUnderscore' --- diff --git a/rts/Linker.c b/rts/Linker.c index d84e4f7..3ba598f 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:");