diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-05-06 18:32:38 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-05-06 18:32:38 +0000 |
commit | d82a5bcc8556860bf686ba6bc80a07757e334c7a (patch) | |
tree | d07d04e045397b3c9e1455b25614da3a055bf2cf /gold/errors.h | |
parent | f1f70eae2856e8a0aae42d74829cedcb02b9801b (diff) | |
download | fsf-binutils-gdb-d82a5bcc8556860bf686ba6bc80a07757e334c7a.zip fsf-binutils-gdb-d82a5bcc8556860bf686ba6bc80a07757e334c7a.tar.gz fsf-binutils-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/errors.h')
-rw-r--r-- | gold/errors.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/errors.h b/gold/errors.h index bc77994..b373a06 100644 --- a/gold/errors.h +++ b/gold/errors.h @@ -93,6 +93,11 @@ class Errors error_count() const { return this->error_count_; } + // Return the number of warnings. + int + warning_count() const + { return this->warning_count_; } + private: Errors(const Errors&); Errors& operator=(const Errors&); |