From 0f73f6ce53db8a56923062b84af4bb304b58d376 Mon Sep 17 00:00:00 2001 From: "naur@post11.tele.dk" Date: Sat, 3 Apr 2010 18:23:55 +0000 Subject: [PATCH] Fix warning compiling Linker.c for PPC Mac The warning message eliminated is: > rts/Linker.c:4756:0: > warning: nested extern declaration of 'symbolsWithoutUnderscore' --- rts/Linker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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:"); -- 1.7.10.4