Changeset c5e5109


Ignore:
Timestamp:
May 7, 2018, 4:49:31 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
387c9a1
Parents:
cfc3e0f
Message:

give -w flag highest priority

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rcfc3e0f rc5e5109  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun May  6 22:25:59 2018
    13 // Update Count     : 491
     12// Last Modified On : Mon May  7 14:35:57 2018
     13// Update Count     : 492
    1414//
    1515
     
    407407        opterr = 0;                                                                                     // (global) prevent getopt from printing error messages
    408408
    409         bool Werror = false;
     409        bool Wsuppress = false, Werror = false;
    410410        int c;
    411411        while ( (c = getopt_long( argc, argv, "abBcCdefgGlLmnNpqrstTvwW:yzZD:F:", long_opts, &long_index )) != -1 ) {
     
    495495                        break;
    496496                  case 'w':
    497                         SemanticWarning_SuppressAll();
     497                        Wsuppress = true;
    498498                        break;
    499499                  case 'W':
     
    545545                SemanticWarning_WarningAsError();
    546546        } // if
     547        if ( Wsuppress ) {
     548                SemanticWarning_SuppressAll();
     549        } // if
    547550        // for ( const auto w : WarningFormats ) {
    548551        //      cout << w.name << ' ' << (int)w.severity << endl;
Note: See TracChangeset for help on using the changeset viewer.