about summary refs log tree commit diff
path: root/third_party/nix/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libutil')
-rw-r--r--third_party/nix/src/libutil/args.hh6
-rw-r--r--third_party/nix/src/libutil/util.cc2
2 files changed, 3 insertions, 5 deletions
diff --git a/third_party/nix/src/libutil/args.hh b/third_party/nix/src/libutil/args.hh
index ba6582abe424..63637533359b 100644
--- a/third_party/nix/src/libutil/args.hh
+++ b/third_party/nix/src/libutil/args.hh
@@ -8,7 +8,7 @@
 
 namespace nix {
 
-MakeError(UsageError, Error);
+MakeError(UsageError, Error)
 
 enum HashType : char;
 
@@ -118,14 +118,14 @@ class Args {
       flag->arity = 1;
       flag->handler = [=](std::vector<std::string> ss) { *dest = ss[0]; };
       return *this;
-    };
+    }
 
     template <class T>
     FlagMaker& set(T* dest, const T& val) {
       flag->arity = 0;
       flag->handler = [=](std::vector<std::string> ss) { *dest = val; };
       return *this;
-    };
+    }
 
     FlagMaker& mkHashTypeFlag(HashType* ht);
   };
diff --git a/third_party/nix/src/libutil/util.cc b/third_party/nix/src/libutil/util.cc
index b13dd7e4f975..0ad2c51148c9 100644
--- a/third_party/nix/src/libutil/util.cc
+++ b/third_party/nix/src/libutil/util.cc
@@ -35,8 +35,6 @@
 #include <sys/prctl.h>
 #endif
 
-__attribute__((weak));
-
 namespace nix {
 
 const std::string nativeSystem = SYSTEM;