diff options
author | Cary Coutant <ccoutant@gmail.com> | 2016-03-19 17:00:54 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2016-03-19 17:00:54 -0700 |
commit | 9e45fe0ec9dc0365e0056cf28a18dafaa21ab706 (patch) | |
tree | 51690bc6df67834bfdd1b072783be89faf35ef6d | |
parent | e7a0ede94d0eb1dab7c57bd5358a11198dd7894e (diff) | |
download | gdb-users/ccoutant/gold-record.zip gdb-users/ccoutant/gold-record.tar.gz gdb-users/ccoutant/gold-record.tar.bz2 |
Fix two build issues.users/ccoutant/gold-record
-rw-r--r-- | gold/plugin.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc index ab40b6e..6c5185b 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -549,7 +549,7 @@ copy_file(const char* inname, const char* outname) } ssize_t len; while ((len = ::read(in, buf, sizeof(buf))) > 0) - ::write(out, buf, len); + static_cast<void>(::write(out, buf, len)); ::close(in); ::close(out); return true; @@ -669,6 +669,7 @@ Plugin_manager::load_plugins(Layout* layout) { this->layout_ = layout; +#ifdef ENABLE_PLUGINS if (parameters->options().plugin_record()) { this->recorder_ = new Plugin_recorder(); @@ -679,6 +680,7 @@ Plugin_manager::load_plugins(Layout* layout) this->current_ != this->plugins_.end(); ++this->current_) (*this->current_)->load(); +#endif // ENABLE_PLUGINS } // Call the plugin claim-file handlers in turn to see if any claim the file. |