* options.h (class General_options): Add --fatal-warnings.

* main.cc (main): Implement --fatal-warnings.
	* errors.h (Errors::warning_count): New function.
This commit is contained in:
Ian Lance Taylor
2008-05-06 18:32:38 +00:00
parent f1f70eae28
commit d82a5bcc85
4 changed files with 18 additions and 0 deletions

View File

@@ -565,6 +565,10 @@ class General_options
DEFINE_bool(eh_frame_hdr, options::TWO_DASHES, '\0', false,
N_("Create exception frame header"), NULL);
DEFINE_bool(fatal_warnings, options::TWO_DASHES, '\0', false,
N_("Treat warnings as errors"),
N_("Do not treat warnings as errors"));
DEFINE_string(soname, options::ONE_DASH, 'h', NULL,
N_("Set shared library name"), N_("FILENAME"));