Ticket #6136: gcc-warnings.patch

File gcc-warnings.patch, 3.9 KB (added by zeratul976@…, 11 years ago)

patch that fixes the warnings

  • format_date_parser.hpp

     
    256256   
    257257    // skip leading whitespace
    258258    while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; }
    259     charT current_char = *sitr;
    260259
    261260    short year(0), month(0), day(0), day_of_year(0);// wkday(0);
    262261    /* Initialized the following to their minimum values. These intermediate
     
    290289              }
    291290              wkday = mr.current_match;
    292291              if (mr.has_remaining()) {
    293                 current_char = mr.last_char();
    294292                use_current_char = true;
    295293              }
    296294              break;
     
    310308              }
    311309              wkday = mr.current_match;
    312310              if (mr.has_remaining()) {
    313                 current_char = mr.last_char();
    314311                use_current_char = true;
    315312              }
    316313              break;
     
    326323              }
    327324              t_month = month_type(mr.current_match);
    328325              if (mr.has_remaining()) {
    329                 current_char = mr.last_char();
    330326                use_current_char = true;
    331327              }
    332328              break;
     
    342338              }
    343339              t_month = month_type(mr.current_match);
    344340              if (mr.has_remaining()) {
    345                 current_char = mr.last_char();
    346341                use_current_char = true;
    347342              }
    348343              break;
     
    438433        itr++;
    439434        if (use_current_char) {
    440435          use_current_char = false;
    441           current_char = *sitr;
    442436        }
    443437        else {
    444438          sitr++;
     
    476470   
    477471    // skip leading whitespace
    478472    while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; }
    479     charT current_char = *sitr;
    480473
    481474    short month(0);
    482475   
     
    491484              mr = m_month_short_names.match(sitr, stream_end);
    492485              month = mr.current_match;
    493486              if (mr.has_remaining()) {
    494                 current_char = mr.last_char();
    495487                use_current_char = true;
    496488              }
    497489              break;
     
    501493              mr = m_month_long_names.match(sitr, stream_end);
    502494              month = mr.current_match;
    503495              if (mr.has_remaining()) {
    504                 current_char = mr.last_char();
    505496                use_current_char = true;
    506497              }
    507498              break;
     
    529520        itr++;
    530521        if (use_current_char) {
    531522          use_current_char = false;
    532           current_char = *sitr;
    533523        }
    534524        else {
    535525          sitr++;
     
    581571   
    582572    // skip leading whitespace
    583573    while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; }
    584     charT current_char = *sitr;
    585574
    586575    short wkday(0);
    587576   
     
    600589              mr = m_weekday_short_names.match(sitr, stream_end);
    601590              wkday = mr.current_match;
    602591              if (mr.has_remaining()) {
    603                 current_char = mr.last_char();
    604592                use_current_char = true;
    605593              }
    606594              break;
     
    614602              mr = m_weekday_long_names.match(sitr, stream_end);
    615603              wkday = mr.current_match;
    616604              if (mr.has_remaining()) {
    617                 current_char = mr.last_char();
    618605                use_current_char = true;
    619606              }
    620607              break;
     
    641628        itr++;
    642629        if (use_current_char) {
    643630          use_current_char = false;
    644           current_char = *sitr;
    645631        }
    646632        else {
    647633          sitr++;
     
    674660   
    675661    // skip leading whitespace
    676662    while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; }
    677     charT current_char = *sitr;
    678663
    679664    unsigned short year(0);
    680665   
     
    714699        itr++;
    715700        if (use_current_char) {
    716701          use_current_char = false;
    717           current_char = *sitr;
    718702        }
    719703        else {
    720704          sitr++;