Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
table.c:195:7: warning: expression result unused [-Wunused-value]
  if (TEXT_VALUE_LEN(VAR(2)) == 0) {
      ^~~~~~~~~~~~~~~~~~~~~~
table.c:28:27: note: expanded from macro 'TEXT_VALUE_LEN'
#define TEXT_VALUE_LEN(x) GRN_TEXT_VALUE(x), GRN_TEXT_LEN(x)
                          ^
../../include/groonga.h:2205:29: note: expanded from macro 'GRN_TEXT_VALUE'
#define GRN_TEXT_VALUE(obj) GRN_BULK_HEAD(obj)
                            ^
../../include/groonga.h:2077:19: note: expanded from macro 'GRN_BULK_HEAD'
   ? ((bulk)->u.b.head)\
      ~~~~~~~~~~~ ^~~~
  • Loading branch information
kou committed Aug 10, 2012
1 parent 07c6de0 commit 4a7097f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/table/table.c
Expand Up @@ -192,7 +192,7 @@ command_filter(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
(int)GRN_TEXT_LEN(VAR(1)), GRN_TEXT_VALUE(VAR(1)));
goto exit;
}
if (TEXT_VALUE_LEN(VAR(2)) == 0) {
if (GRN_TEXT_LEN(VAR(2)) == 0) {
ERR(GRN_INVALID_ARGUMENT, "missing mandatory argument: operator");
goto exit;
} else {
Expand Down

0 comments on commit 4a7097f

Please sign in to comment.