Navigation Menu

Skip to content

Commit

Permalink
Suppress wrong Visual C++ warning
Browse files Browse the repository at this point in the history
    groonga\lib\db.c(13570): error C4090: 'function': different 'const' qualifiers
    groonga\lib\db.c(13656): error C4090: 'function': different 'const' qualifiers
  • Loading branch information
kou committed Feb 8, 2018
1 parent 46e97fe commit ab01403
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/db.c
Expand Up @@ -13567,7 +13567,8 @@ grn_table_sort_key_from_str_geo(grn_ctx *ctx, const char *str, unsigned int str_
p = r;
}
}
GRN_FREE(tokbuf);
/* The cast is just for suppressing wrong Visual C++ warning. */
GRN_FREE((void *)tokbuf);
}
if (!ctx->rc && k - keys > 0) {
*nkeys = k - keys;
Expand Down Expand Up @@ -13653,7 +13654,8 @@ grn_table_sort_key_from_str(grn_ctx *ctx, const char *str, unsigned int str_size
p = r;
}
}
GRN_FREE(tokbuf);
/* The cast is just for suppressing wrong Visual C++ warning. */
GRN_FREE((void *)tokbuf);
}
if (!ctx->rc && k - keys > 0) {
*nkeys = k - keys;
Expand Down

0 comments on commit ab01403

Please sign in to comment.