Changeset 282
- Timestamp:
- Oct 18, 2006, 12:40:58 PM (18 years ago)
- 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 1 2006-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 5 2006-12-10 Vincent Garonne <garonne@lal.in2p3.fr> 316 3 6 4 7 * source/cmt_parser.cxx, source/cmt_syntax.cxx, source/cmt_use.*: Enable and propagate the -native_version syntax at the use level. 5 8 IMPORTANT NOTES: STILL NOT FINISHED. 6 7 8 2006-12-17 Vincent Garonne <garonne@lal.in2p3.fr> 315 9 10 2006-12-10 Vincent Garonne <garonne@lal.in2p3.fr> 315 9 11 10 12 * source/cmt_std.h: add __APPLE__ for removing compilation warnings 11 13 12 2006-11-1 7Vincent Garonne <garonne@lal.in2p3.fr> 31414 2006-11-10 Vincent Garonne <garonne@lal.in2p3.fr> 314 13 15 14 16 * source/cmt_project.*: Add two functions - get_project_releases, select_release 15 17 * source/cmt_project.*: Add support for wildcarded project dependencies 16 18 17 2006-10-1 7Vincent Garonne <garonne@lal.in2p3.fr> 31319 2006-10-10 Vincent Garonne <garonne@lal.in2p3.fr> 313 18 20 19 21 * 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 57 57 cmt_string m_default_path; 58 58 bool m_quiet; 59 bool m_disable_warnings; 59 60 bool m_warnings; 60 61 bool m_recursive; … … 211 212 static const cmt_string& get_current_target (); 212 213 static bool get_debug (); 214 static bool get_disable_warnings (); 213 215 static bool get_quiet (); 214 216 static bool get_warnings (); -
CMT/HEAD/source/cmt_commands.cxx
r272 r282 201 201 parsers.add ("-csh", i); 202 202 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 () 203 222 204 223 parsers.add ("-e", i); … … 1595 1614 } 1596 1615 1616 1617 void ArgParser::option_disable_warnings () 1618 { 1619 cmt.m_disable_warnings = true; 1620 } 1621 1597 1622 void ArgParser::option_quiet () 1598 1623 { 1599 1624 cmt.m_quiet = true; 1600 1625 } 1626 1601 1627 1602 1628 void ArgParser::option_warnings () … … 2013 2039 cerr << "# global options :" << endl; 2014 2040 2041 cerr << "# -disable_warnings : don't print warnings" << endl; 2015 2042 cerr << "# -quiet : don't print errors" << endl; 2016 2043 cerr << "# -use=<p>:<v>:<path> : set package version path" << endl; -
CMT/HEAD/source/cmt_commands.h
r272 r282 60 60 void do_unlock (); 61 61 void do_version (); 62 void option_disable_warnings(); 62 63 void option_help (); 63 64 void option_n (); -
CMT/HEAD/source/cmt_parser.cxx
r280 r282 78 78 m_default_path = ""; 79 79 m_quiet = false; 80 m_disable_warnings = false; 80 81 m_warnings = false; 81 82 m_recursive = false; … … 1946 1947 if (tag == 0) continue; 1947 1948 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 ()) 1949 1950 { 1950 1951 cerr << "#CMT> The tag " << t << " is not used in any tag expression. Please check spelling" << endl; … … 1966 1967 } 1967 1968 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 ()) 1969 1970 { 1970 1971 cerr << "#CMT> The CMTSITE value " << env << " is not used in any tag expression. Please check spelling" << endl; … … 4068 4069 { 4069 4070 return (Me.m_quiet); 4071 } 4072 4073 bool Cmt::get_disable_warnings () 4074 { 4075 return (Me.m_disable_warnings); 4070 4076 } 4071 4077
Note: See TracChangeset
for help on using the changeset viewer.