Commit 22b00bdf authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #6040 change examples so that they have some chance of building on darwin

git-svn-id: file:///svn/toku/tokudb@54983 c7de825b-a66e-492c-adef-691d508d4ae1
parent ab2a00cb
...@@ -55,7 +55,7 @@ static void table_destroy_dbt(DBT *dbt) { ...@@ -55,7 +55,7 @@ static void table_destroy_dbt(DBT *dbt) {
} }
#endif #endif
static void table_init(struct table *t, int ndbs, DB **dbs, size_t key_length, size_t val_length) { static void table_init(struct table *t, int ndbs, DB **dbs, size_t key_length __attribute__((unused)), size_t val_length __attribute__((unused))) {
t->ndbs = ndbs; t->ndbs = ndbs;
t->dbs = dbs; t->dbs = dbs;
#if defined(TOKUDB) #if defined(TOKUDB)
...@@ -69,9 +69,6 @@ static void table_init(struct table *t, int ndbs, DB **dbs, size_t key_length, s ...@@ -69,9 +69,6 @@ static void table_init(struct table *t, int ndbs, DB **dbs, size_t key_length, s
t->mult_flags = calloc(ndbs, sizeof (uint32_t)); t->mult_flags = calloc(ndbs, sizeof (uint32_t));
for (i = 0; i < ndbs; i++) for (i = 0; i < ndbs; i++)
t->mult_flags[i] = 0; t->mult_flags[i] = 0;
#else
key_length = key_length;
val_length = val_length;
#endif #endif
} }
......
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