Changeset 282


Ignore:
Timestamp:
Oct 18, 2006, 12:40:58 PM (18 years ago)
Author:
garonne
Message:

See C.L 317

Location:
CMT/HEAD
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r281 r282  
    1 
    2 2006-12-17 Vincent Garonne <garonne@lal.in2p3.fr> 316
     12006-18-10 Vincent Garonne <garonne@lal.in2p3.fr> 317
     2
     3    *  cmt_commands.*, cmt_parser.cxx, cmt.h: Add the -disable_warnings option to not print certains warnings, e.g. the CMTSITE value etc.
     4   
     52006-12-10 Vincent Garonne <garonne@lal.in2p3.fr> 316
    36
    47    * source/cmt_parser.cxx, source/cmt_syntax.cxx, source/cmt_use.*: Enable and propagate the -native_version syntax at the use level.
    58     IMPORTANT NOTES: STILL NOT FINISHED.
    6 
    7 
    8 2006-12-17 Vincent Garonne <garonne@lal.in2p3.fr> 315
     9     
     102006-12-10 Vincent Garonne <garonne@lal.in2p3.fr> 315
    911
    1012    * source/cmt_std.h: add __APPLE__ for removing compilation warnings   
    1113
    12 2006-11-17 Vincent Garonne <garonne@lal.in2p3.fr> 314
     142006-11-10 Vincent Garonne <garonne@lal.in2p3.fr> 314
    1315
    1416    * source/cmt_project.*: Add two functions - get_project_releases, select_release   
    1517    * source/cmt_project.*: Add support for wildcarded project dependencies
    1618
    17 2006-10-17 Vincent Garonne <garonne@lal.in2p3.fr> 313
     192006-10-10 Vincent Garonne <garonne@lal.in2p3.fr> 313
    1820
    1921    * source/cmt_symbol.*, source/cmt_parser.*, source/cmt_commands.*, source/cmt_syntax.*, source/cmt.h: Add support for the show project author command
  • CMT/HEAD/source/cmt.h

    r272 r282  
    5757  cmt_string m_default_path;
    5858  bool m_quiet;
     59  bool m_disable_warnings;
    5960  bool m_warnings;
    6061  bool m_recursive;
     
    211212  static const cmt_string& get_current_target ();
    212213  static bool get_debug ();
     214  static bool get_disable_warnings (); 
    213215  static bool get_quiet ();
    214216  static bool get_warnings ();
  • CMT/HEAD/source/cmt_commands.cxx

    r272 r282  
    201201  parsers.add ("-csh", i);
    202202  pv.push_back (&ArgParser::option_csh); i++;
     203
     204  parsers.add ("-d", i);
     205  parsers.add ("-di", i);
     206  parsers.add ("-dis", i);
     207  parsers.add ("-disa", i);
     208  parsers.add ("-disab", i);
     209  parsers.add ("-disabl", i);
     210  parsers.add ("-disable", i);
     211  parsers.add ("-disable_", i);
     212  parsers.add ("-disable_w", i);
     213  parsers.add ("-disable_wa", i);
     214  parsers.add ("-disable_war", i);
     215  parsers.add ("-disable_warn", i);
     216  parsers.add ("-disable_warni", i);
     217  parsers.add ("-disable_warnin", i);
     218  parsers.add ("-disable_warning", i);
     219  parsers.add ("-disable_warnings", i);
     220  pv.push_back (&ArgParser::option_disable_warnings); i++;
     221//Cmt::get_quiet ()
    203222
    204223  parsers.add ("-e", i);
     
    15951614}
    15961615
     1616
     1617void ArgParser::option_disable_warnings ()
     1618{
     1619  cmt.m_disable_warnings = true;
     1620}
     1621
    15971622void ArgParser::option_quiet ()
    15981623{
    15991624  cmt.m_quiet = true;
    16001625}
     1626
    16011627
    16021628void ArgParser::option_warnings ()
     
    20132039  cerr << "# global options :" << endl;
    20142040
     2041  cerr << "#   -disable_warnings       : don't print warnings" << endl;
    20152042  cerr << "#   -quiet                  : don't print errors" << endl;
    20162043  cerr << "#   -use=<p>:<v>:<path>     : set package version path" << endl;
  • CMT/HEAD/source/cmt_commands.h

    r272 r282  
    6060  void do_unlock ();
    6161  void do_version ();
     62  void option_disable_warnings();
    6263  void option_help ();
    6364  void option_n ();
  • CMT/HEAD/source/cmt_parser.cxx

    r280 r282  
    7878  m_default_path     = "";
    7979  m_quiet            = false;
     80  m_disable_warnings = false;
    8081  m_warnings         = false;
    8182  m_recursive        = false;
     
    19461947      if (tag == 0) continue;
    19471948
    1948       if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag))
     1949      if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag) && !Cmt::get_disable_warnings ())
    19491950        {
    19501951          cerr << "#CMT> The tag " << t << " is not used in any tag expression. Please check spelling" << endl;
     
    19661967    }
    19671968
    1968   if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag))
     1969  if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag) && !Cmt::get_disable_warnings ())
    19691970    {
    19701971      cerr << "#CMT> The CMTSITE value " << env << " is not used in any tag expression. Please check spelling" << endl;
     
    40684069{
    40694070  return (Me.m_quiet);
     4071}
     4072
     4073bool Cmt::get_disable_warnings ()
     4074{
     4075  return (Me.m_disable_warnings);
    40704076}
    40714077
Note: See TracChangeset for help on using the changeset viewer.