Fix warning compiling Linker.c for PPC Mac
authornaur@post11.tele.dk <unknown>
Sat, 3 Apr 2010 18:23:55 +0000 (18:23 +0000)
committernaur@post11.tele.dk <unknown>
Sat, 3 Apr 2010 18:23:55 +0000 (18:23 +0000)
The warning message eliminated is:
> rts/Linker.c:4756:0:
>      warning: nested extern declaration of 'symbolsWithoutUnderscore'

rts/Linker.c

index d84e4f7..3ba598f 100644 (file)
@@ -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:");