Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/check_missing_break.c
          +++ new/usr/src/tools/smatch/src/check_missing_break.c
↓ open down ↓ 169 lines elided ↑ open up ↑
 170  170                  delete_my_states(my_id);
 171  171  }
 172  172  
 173  173  void check_missing_break(int id)
 174  174  {
 175  175          my_id = id;
 176  176  
 177  177          if (!option_spammy)
 178  178                  return;
 179  179  
      180 +        set_dynamic_states(my_id);
 180  181          add_unmatched_state_hook(my_id, &unmatched_state);
 181  182          add_merge_hook(my_id, &merge_hook);
 182  183  
 183  184          add_hook(&match_assign, ASSIGNMENT_HOOK);
 184  185          add_hook(&match_symbol, SYM_HOOK);
 185  186          add_hook(&match_stmt, STMT_HOOK);
 186  187          add_hook(&match_switch, STMT_HOOK);
 187  188          add_hook(&match_switch_end, STMT_HOOK_AFTER);
 188  189  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX