diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-25 20:47:41 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-25 20:47:41 -0700 |
commit | 1a33d221c1a23c218d3457dfe2a4344c2a33f9a1 (patch) | |
tree | 1a1c36fc15a05b88564bed9215e59bcfe267aea9 /subx/001help.cc | |
parent | d671148d99e35b7643068d3ea59babaf7ce336e8 (diff) | |
download | mu-1a33d221c1a23c218d3457dfe2a4344c2a33f9a1.tar.gz |
4413
Never mind, let's drop unused/vestigial altogether. Use absence of names to signal unused arguments.
Diffstat (limited to 'subx/001help.cc')
-rw-r--r-- | subx/001help.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/subx/001help.cc b/subx/001help.cc index 564c1211..636205ad 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, vestigial siginfo_t*, vestigial void*) { +void dump_and_exit(int sig, siginfo_t* /*unused*/, void* /*unused*/) { switch (sig) { case SIGABRT: #ifndef __APPLE__ @@ -256,8 +256,6 @@ using std::cerr; #include <string> using std::string; -#define vestigial __attribute__((unused)) - #include <algorithm> using std::min; using std::max; |