Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
pat.c:396:75: warning: for loop has empty body [-Wempty-body]
  for (w_of_element = 0; (1 << w_of_element) < entry_size; w_of_element++);
                                                                          ^
pat.c:396:75: note: put the semicolon on a separate line to silence this
      warning [-Wempty-body]
  • Loading branch information
kou committed Aug 10, 2012
1 parent 8c0d60d commit 4c23126
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pat.c
Expand Up @@ -393,7 +393,9 @@ _grn_pat_create(grn_ctx *ctx, grn_pat *pat,
} else {
entry_size = value_size;
}
for (w_of_element = 0; (1 << w_of_element) < entry_size; w_of_element++);
for (w_of_element = 0; (1 << w_of_element) < entry_size; w_of_element++) {
/* nop */
}
{
grn_io_array_spec array_spec[3];
array_spec[segment_key].w_of_element = 0;
Expand Down

0 comments on commit 4c23126

Please sign in to comment.