Commit 2965d87a authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4687] resolve warning about -Wstrict-aliasing


git-svn-id: file:///svn/toku/tokudb@44594 c7de825b-a66e-492c-adef-691d508d4ae1
parent 78ad3e15
......@@ -116,7 +116,8 @@ cleanup:
}
increment_counter(stats_extra, PUTS, i);
gid_count++;
*(u_int32_t *)hi_gid = gid_count;
u_int32_t *hi_gid_count_p = (void *) hi_gid; // make gcc --happy about -Wstrict-aliasing
*hi_gid_count_p = gid_count;
int rr = hi_txn->prepare(hi_txn, hi_gid);
CKERR(rr);
if (r || (random() % 2)) {
......
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