Commit cd1701dc authored by marko's avatar marko

branches/zip: buf_buddy_get_slot(): Fix a gcc 4.3.2 warning

about an empty body of a "for" statement.
This fixes part of Issue #176.
parent 0c3619e7
......@@ -75,7 +75,8 @@ buf_buddy_get_slot(
ulint i;
ulint s;
for (i = 0, s = BUF_BUDDY_LOW; s < size; i++, s <<= 1);
for (i = 0, s = BUF_BUDDY_LOW; s < size; i++, s <<= 1) {
}
ut_ad(i <= BUF_BUDDY_SIZES);
return(i);
......
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