Commit b10078d3 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 f1d6c559
......@@ -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