Kouhei Sutou
null+****@clear*****
Sat Apr 18 17:07:40 JST 2015
Kouhei Sutou 2015-04-18 17:07:40 +0900 (Sat, 18 Apr 2015) New Revision: 1b8e14d230a08543d99bb6b8eb59c767f2470dda https://github.com/groonga/groonga/commit/1b8e14d230a08543d99bb6b8eb59c767f2470dda Message: Suppress a warning operator.c:118:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] Modified files: lib/operator.c Modified: lib/operator.c (+3 -1) =================================================================== --- lib/operator.c 2015-04-18 17:06:04 +0900 (80a0f88) +++ lib/operator.c 2015-04-18 17:07:40 +0900 (14a870c) @@ -112,10 +112,12 @@ static const char *operator_names[] = { "regexp" }; +#define GRN_OP_LAST GRN_OP_REGEXP + const char * grn_operator_to_string(grn_operator op) { - if (GRN_OP_PUSH <= op && op <= GRN_OP_REGEXP) { + if (op <= GRN_OP_LAST) { return operator_names[op]; } else { return "unknown"; -------------- next part -------------- HTML����������������������������... Download