A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This variable is only used with threads. Protect it with ifdef
[simgrid.git]
/
src
/
xbt
/
context.c
diff --git
a/src/xbt/context.c
b/src/xbt/context.c
index
8e3778a
..
4d7f818
100644
(file)
--- a/
src/xbt/context.c
+++ b/
src/xbt/context.c
@@
-361,7
+361,9
@@
void xbt_context_empty_trash(void)
static void __xbt_context_yield(xbt_context_t context)
{
static void __xbt_context_yield(xbt_context_t context)
{
+#ifdef CONTEXT_THREADS
xbt_context_t self;
xbt_context_t self;
+#endif
xbt_assert0(current_context, "You have to call context_init() first.");
xbt_assert0(context,"Invalid argument");
xbt_assert0(current_context, "You have to call context_init() first.");
xbt_assert0(context,"Invalid argument");