Changeset 68e9ace for src/main.cc
- Timestamp:
- May 2, 2018, 5:36:02 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 161cdf1
- Parents:
- 623c16a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r623c16a r68e9ace 508 508 break; 509 509 case 'w': 510 for ( auto & w : WarningFormats ) { 511 w.severity = Severity::Suppress; 512 } // for 510 SemanticWarning_SuppressAll(); 513 511 break; 514 512 case 'W': 515 513 if ( strcmp( optarg, "all" ) == 0 ) { 516 for ( auto & w : WarningFormats ) { 517 if ( w.severity == Severity::Suppress ) w.severity = Severity::Warn; 518 } // for 514 SemanticWarning_EnableAll(); 519 515 } else if ( strcmp( optarg, "error" ) == 0 ) { 520 516 Werror = true; … … 528 524 s = Severity::Warn; 529 525 } // if 530 for ( auto & w : WarningFormats ) { 531 if ( strcmp( warning, w.name ) == 0 ) { // replace the argument for cfa-cpp 532 w.severity = s; 533 break; 534 } // if 535 } // for 526 SemanticWarning_Set( warning, s ); 536 527 } // if 537 528 break; … … 566 557 567 558 if ( Werror ) { 568 for ( auto & w : WarningFormats ) { 569 if ( w.severity == Severity::Warn ) w.severity = Severity::Error; 570 } // for 559 SemanticWarning_WarningAsError(); 571 560 } // if 572 561 // for ( const auto w : WarningFormats ) {
Note: See TracChangeset
for help on using the changeset viewer.