]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix two build issues. users/ccoutant/gold-record
authorCary Coutant <ccoutant@gmail.com>
Sun, 20 Mar 2016 00:00:54 +0000 (17:00 -0700)
committerCary Coutant <ccoutant@gmail.com>
Sun, 20 Mar 2016 00:00:54 +0000 (17:00 -0700)
gold/plugin.cc

index ab40b6eace24835c38a949b0a5177e45c2ec4bd1..6c5185b35dc9b1958855ab4d202680208bd670c6 100644 (file)
@@ -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.