Commit 60f6d80f authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:5132] remove void * cast to at least fix on linux

git-svn-id: file:///svn/toku/tokudb@44874 c7de825b-a66e-492c-adef-691d508d4ae1
parent c5fe132a
...@@ -533,8 +533,7 @@ static void *worker(void *arg_v) { ...@@ -533,8 +533,7 @@ static void *worker(void *arg_v) {
DB_ENV *env = arg->env; DB_ENV *env = arg->env;
DB_TXN *txn = NULL; DB_TXN *txn = NULL;
if (verbose) { if (verbose) {
// cast through void * to silence warnings on osx printf("%lu starting %p\n", (unsigned long) toku_pthread_self(), arg->operation);
printf("%lu starting %p\n", (unsigned long)(void *) toku_pthread_self(), arg->operation);
} }
if (arg->cli->single_txn) { if (arg->cli->single_txn) {
r = env->txn_begin(env, 0, &txn, arg->txn_type); CKERR(r); r = env->txn_begin(env, 0, &txn, arg->txn_type); CKERR(r);
...@@ -577,8 +576,7 @@ static void *worker(void *arg_v) { ...@@ -577,8 +576,7 @@ static void *worker(void *arg_v) {
{ int chk_r = txn->commit(txn, 0); CKERR(chk_r); } { int chk_r = txn->commit(txn, 0); CKERR(chk_r); }
} }
if (verbose) { if (verbose) {
// cast through void * to silence warnings on osx printf("%lu returning\n", (unsigned long) toku_pthread_self());
printf("%lu returning\n", (unsigned long)(void *) toku_pthread_self());
} }
toku_free(random_buf); toku_free(random_buf);
return arg; return arg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment