Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ba206f7e
Commit
ba206f7e
authored
Jan 03, 2008
by
Simon Marlow
Browse files
Fix warnings with newer gcc versions (I hope)
parent
f89b598d
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/SMP.h
View file @
ba206f7e
...
...
@@ -206,7 +206,7 @@ lockClosure(StgClosure *p)
}
INLINE_HEADER
void
unlockClosure
(
StgClosure
*
p
,
StgInfoTable
*
info
)
unlockClosure
(
StgClosure
*
p
,
const
StgInfoTable
*
info
)
{
// This is a strictly ordered write, so we need a write_barrier():
write_barrier
();
...
...
@@ -319,7 +319,7 @@ lockClosure(StgClosure *p)
{
return
(
StgInfoTable
*
)
p
->
header
.
info
;
}
INLINE_HEADER
void
unlockClosure
(
StgClosure
*
p
STG_UNUSED
,
StgInfoTable
*
info
STG_UNUSED
)
unlockClosure
(
StgClosure
*
p
STG_UNUSED
,
const
StgInfoTable
*
info
STG_UNUSED
)
{
/* nothing */
}
// Using macros here means we don't have to ensure the argument is in scope
...
...
@@ -336,7 +336,7 @@ INLINE_HEADER void lockTSO(StgTSO *tso)
{
lockClosure
((
StgClosure
*
)
tso
);
}
INLINE_HEADER
void
unlockTSO
(
StgTSO
*
tso
)
{
unlockClosure
((
StgClosure
*
)
tso
,
(
StgInfoTable
*
)
&
stg_TSO_info
);
}
{
unlockClosure
((
StgClosure
*
)
tso
,
(
const
StgInfoTable
*
)
&
stg_TSO_info
);
}
#endif
/* SMP_H */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment