Ticket #6136: gcc-warnings.patch
File gcc-warnings.patch, 3.9 KB (added by , 11 years ago) |
---|
-
format_date_parser.hpp
256 256 257 257 // skip leading whitespace 258 258 while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; } 259 charT current_char = *sitr;260 259 261 260 short year(0), month(0), day(0), day_of_year(0);// wkday(0); 262 261 /* Initialized the following to their minimum values. These intermediate … … 290 289 } 291 290 wkday = mr.current_match; 292 291 if (mr.has_remaining()) { 293 current_char = mr.last_char();294 292 use_current_char = true; 295 293 } 296 294 break; … … 310 308 } 311 309 wkday = mr.current_match; 312 310 if (mr.has_remaining()) { 313 current_char = mr.last_char();314 311 use_current_char = true; 315 312 } 316 313 break; … … 326 323 } 327 324 t_month = month_type(mr.current_match); 328 325 if (mr.has_remaining()) { 329 current_char = mr.last_char();330 326 use_current_char = true; 331 327 } 332 328 break; … … 342 338 } 343 339 t_month = month_type(mr.current_match); 344 340 if (mr.has_remaining()) { 345 current_char = mr.last_char();346 341 use_current_char = true; 347 342 } 348 343 break; … … 438 433 itr++; 439 434 if (use_current_char) { 440 435 use_current_char = false; 441 current_char = *sitr;442 436 } 443 437 else { 444 438 sitr++; … … 476 470 477 471 // skip leading whitespace 478 472 while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; } 479 charT current_char = *sitr;480 473 481 474 short month(0); 482 475 … … 491 484 mr = m_month_short_names.match(sitr, stream_end); 492 485 month = mr.current_match; 493 486 if (mr.has_remaining()) { 494 current_char = mr.last_char();495 487 use_current_char = true; 496 488 } 497 489 break; … … 501 493 mr = m_month_long_names.match(sitr, stream_end); 502 494 month = mr.current_match; 503 495 if (mr.has_remaining()) { 504 current_char = mr.last_char();505 496 use_current_char = true; 506 497 } 507 498 break; … … 529 520 itr++; 530 521 if (use_current_char) { 531 522 use_current_char = false; 532 current_char = *sitr;533 523 } 534 524 else { 535 525 sitr++; … … 581 571 582 572 // skip leading whitespace 583 573 while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; } 584 charT current_char = *sitr;585 574 586 575 short wkday(0); 587 576 … … 600 589 mr = m_weekday_short_names.match(sitr, stream_end); 601 590 wkday = mr.current_match; 602 591 if (mr.has_remaining()) { 603 current_char = mr.last_char();604 592 use_current_char = true; 605 593 } 606 594 break; … … 614 602 mr = m_weekday_long_names.match(sitr, stream_end); 615 603 wkday = mr.current_match; 616 604 if (mr.has_remaining()) { 617 current_char = mr.last_char();618 605 use_current_char = true; 619 606 } 620 607 break; … … 641 628 itr++; 642 629 if (use_current_char) { 643 630 use_current_char = false; 644 current_char = *sitr;645 631 } 646 632 else { 647 633 sitr++; … … 674 660 675 661 // skip leading whitespace 676 662 while(std::isspace(*sitr) && sitr != stream_end) { ++sitr; } 677 charT current_char = *sitr;678 663 679 664 unsigned short year(0); 680 665 … … 714 699 itr++; 715 700 if (use_current_char) { 716 701 use_current_char = false; 717 current_char = *sitr;718 702 } 719 703 else { 720 704 sitr++;