projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c970ab4
)
Fix warning compiling Linker.c for PPC Mac
author
naur@post11.tele.dk
<unknown>
Sat, 3 Apr 2010 18:23:55 +0000
(18:23 +0000)
committer
naur@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
patch
|
blob
|
history
diff --git
a/rts/Linker.c
b/rts/Linker.c
index
d84e4f7
..
3ba598f
100644
(file)
--- 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:");