Kouhei Sutou
null+****@clear*****
Thu Feb 8 22:31:37 JST 2018
Kouhei Sutou 2018-02-08 22:31:37 +0900 (Thu, 08 Feb 2018) New Revision: ab014033e3a1476e5fe0d203b0fc8184333c4373 https://github.com/groonga/groonga/commit/ab014033e3a1476e5fe0d203b0fc8184333c4373 Message: Suppress wrong Visual C++ warning groonga\lib\db.c(13570): error C4090: 'function': different 'const' qualifiers groonga\lib\db.c(13656): error C4090: 'function': different 'const' qualifiers Modified files: lib/db.c Modified: lib/db.c (+4 -2) =================================================================== --- lib/db.c 2018-02-08 15:27:02 +0900 (11c47b25b) +++ lib/db.c 2018-02-08 22:31:37 +0900 (a773f28c7) @@ -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; @@ -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; -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180208/a3214d90/attachment.htm