diff options
author | Avra Sengupta <asengupt@redhat.com> | 2012-11-21 14:07:05 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-01-21 22:17:36 -0800 |
commit | 777d395feaa082a69e32d985bbc1cca3d3dad077 (patch) | |
tree | 0aa6c1a1390320bd8ac674e14ca1c3da58c39927 /libglusterfs/src/syncop.c | |
parent | 6e18e3bd81f8dac9467aaa6cbe84499b891ca367 (diff) |
core: fixes for gcc's '-pedantic' flag build
* warnings on 'void *' arguments
* warnings on empty initializations
* warnings on empty array (array[0])
Change-Id: Iae440f54cbd59580eb69f3ecaed5a9926c0edf95
BUG: 875913
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-on: http://review.gluster.org/4219
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.c')
-rw-r--r-- | libglusterfs/src/syncop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 471ae1e05ef..0c807ef5d3a 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -220,7 +220,7 @@ synctask_new (struct syncenv *env, synctask_fn_t fn, synctask_cbk_t cbk, newtask->ctx.uc_stack.ss_sp = newtask->stack; newtask->ctx.uc_stack.ss_size = env->stacksize; - makecontext (&newtask->ctx, (void *) synctask_wrap, 2, newtask); + makecontext (&newtask->ctx, (void (*)(void)) synctask_wrap, 2, newtask); newtask->state = SYNCTASK_INIT; |