summaryrefslogtreecommitdiff
path: root/mysys/my_context.c
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2014-12-19 23:17:59 +0400
committerSergey Vojtovich <svoj@mariadb.org>2014-12-19 23:17:59 +0400
commit094640c036a333c0f2b6f909b01a0ca39997f716 (patch)
treefb162343d3a3fd48485731e4fc827ebf9e712478 /mysys/my_context.c
parent0f64a927a93239f7f0f5e413b893f7fc1233de15 (diff)
downloadmariadb-git-094640c036a333c0f2b6f909b01a0ca39997f716.tar.gz
Fixed a couple of compiler warnings.
Diffstat (limited to 'mysys/my_context.c')
-rw-r--r--mysys/my_context.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/mysys/my_context.c b/mysys/my_context.c
index 9be5ab80468..80156df4495 100644
--- a/mysys/my_context.c
+++ b/mysys/my_context.c
@@ -729,33 +729,36 @@ my_context_continue(struct my_context *c)
#ifdef MY_CONTEXT_DISABLE
int
-my_context_continue(struct my_context *c)
+my_context_continue(struct my_context *c __attribute__((unused)))
{
return -1;
}
int
-my_context_spawn(struct my_context *c, void (*f)(void *), void *d)
+my_context_spawn(struct my_context *c __attribute__((unused)),
+ void (*f)(void *) __attribute__((unused)),
+ void *d __attribute__((unused)))
{
return -1;
}
int
-my_context_yield(struct my_context *c)
+my_context_yield(struct my_context *c __attribute__((unused)))
{
return -1;
}
int
-my_context_init(struct my_context *c, size_t stack_size)
+my_context_init(struct my_context *c __attribute__((unused)),
+ size_t stack_size __attribute__((unused)))
{
return -1; /* Out of memory */
}
void
-my_context_destroy(struct my_context *c)
+my_context_destroy(struct my_context *c __attribute__((unused)))
{
}