Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at grammar.c:1170

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

yy_syntax_error

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dfilter/grammar.c)expand/collapse
Show more  
 1116  static void yy_syntax_error(
 1117    yyParser *yypParser _U_,       /* The parser */
 1118    int yymajor _U_,               /* The major type of the error token */
 1119    YYMINORTYPE yyminor            /* The minor type of the error token */
 1120  ){
 1121    DfilterARG_FETCH;
 1122  #define TOKEN (yyminor.yy0)
 1123  #line 64 "./grammar.lemon"
 1124   
 1125   
 1126          header_field_info       *hfinfo;
 1127   
 1128          if (!TOKEN) {
 1129                  dfilter_fail("Unexpected end of filter string.");
 1130                  return;
 1131          }
 1132   
 1133          switch(stnode_type_id(TOKEN)) {
 1134                  case STTYPE_UNINITIALIZED:
 1135                          dfilter_fail("Syntax error.");
 1136                          break;
 1137                  case STTYPE_TEST:
 1138                          dfilter_fail("Syntax error, TEST.");
 1139                          break;
 1140                  case STTYPE_STRING:
 1141                          dfilter_fail("The string \"%s\" was unexpected in this context.",
 1142                                  stnode_data(TOKEN));
 1143                          break;
 1144                  case STTYPE_UNPARSED:
 1145                          dfilter_fail("\"%s\" was unexpected in this context.",
 1146                                  stnode_data(TOKEN));
 1147                          break;
 1148                  case STTYPE_INTEGER:
 1149                          dfilter_fail("The integer %d was unexpected in this context.",
 1150                                  stnode_value(TOKEN));
 1151                          break;
 1152                  case STTYPE_FIELD:
 1153                          hfinfo = stnode_data(TOKEN);
 1154                          dfilter_fail("Syntax error near \"%s\".", hfinfo->abbrev);
 1155                          break;
 1156                  case STTYPE_FUNCTION:
 1157                          dfilter_fail("The function s was unexpected in this context.");
 1158                          break;
 1159   
 1160                  /* These aren't handed to use as terminal tokens from 
 1161                     the scanner, so was can assert that we'll never 
 1162                     see them here. */
 1163                  case STTYPE_NUM_TYPES:
 1164                  case STTYPE_RANGE:
 1165                  case STTYPE_FVALUE:
 1166                          g_assert_not_reached();
 1167                          break;
 1168          }
 1169  #line 1176 "grammar.c"
 1170    DfilterARG_STORE; /* Suppress warning about unused %extra_argument variable */
 1171  }
Show more  




Change Warning 1152.29584 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: