about summary refs log tree commit diff stats
path: root/subx/001help.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-25 19:11:02 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-25 19:11:02 -0700
commitfb5a590d6739c55f0e7fbffe1e80f426cbdbc369 (patch)
tree7a78a3cdc4ba47ee447dd2b98820d4d749e6fe1e /subx/001help.cc
parentd9ea0ed1bc4dd53b102a8788120bc6b966c9f2f2 (diff)
downloadmu-fb5a590d6739c55f0e7fbffe1e80f426cbdbc369.tar.gz
4411
Port commit 4235 to subx.
Diffstat (limited to 'subx/001help.cc')
-rw-r--r--subx/001help.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/subx/001help.cc b/subx/001help.cc
index c5b16a39..b4d58de5 100644
--- a/subx/001help.cc
+++ b/subx/001help.cc
@@ -158,7 +158,7 @@ void initialize_signal_handlers() {
   sigaction(SIGABRT, &action, NULL);  // assert() failure or integer overflow on linux (with -ftrapv)
   sigaction(SIGILL,  &action, NULL);  // integer overflow on OS X (with -ftrapv)
 }
-void dump_and_exit(int sig, unused siginfo_t* dummy1, unused void* dummy2) {
+void dump_and_exit(int sig, vestigial siginfo_t* dummy1, vestigial void* dummy2) {
   switch (sig) {
     case SIGABRT:
       #ifndef __APPLE__
@@ -256,4 +256,8 @@ using std::cerr;
 #include <string>
 using std::string;
 
-#define unused  __attribute__((unused))
+#define vestigial  __attribute__((unused))
+
+#include <algorithm>
+using std::min;
+using std::max;