aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-05-06 18:32:38 +0000
committerIan Lance Taylor <ian@airs.com>2008-05-06 18:32:38 +0000
commitd82a5bcc8556860bf686ba6bc80a07757e334c7a (patch)
treed07d04e045397b3c9e1455b25614da3a055bf2cf /gold/options.h
parentf1f70eae2856e8a0aae42d74829cedcb02b9801b (diff)
downloadgdb-d82a5bcc8556860bf686ba6bc80a07757e334c7a.zip
gdb-d82a5bcc8556860bf686ba6bc80a07757e334c7a.tar.gz
gdb-d82a5bcc8556860bf686ba6bc80a07757e334c7a.tar.bz2
* options.h (class General_options): Add --fatal-warnings.
* main.cc (main): Implement --fatal-warnings. * errors.h (Errors::warning_count): New function.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 9eb51ce..2ea57ec 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -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"));