diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-03 20:25:24 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-03 20:25:24 -0800 |
commit | 9d9cfa85fe614084768e1c66666933ac648a8d90 (patch) | |
tree | 65453d9eb0c978652bf6cf9afd9477e894b77e49 /sigchainlib | |
parent | a10a8b56a01be95b3ec13022d3a155e163a11673 (diff) | |
download | art-9d9cfa85fe614084768e1c66666933ac648a8d90.zip art-9d9cfa85fe614084768e1c66666933ac648a8d90.tar.gz art-9d9cfa85fe614084768e1c66666933ac648a8d90.tar.bz2 |
ART: Fix unused parameters in libsigchain
The sigchain dummy implementation does not use any parameters.
Change-Id: Icbb71677e5092cd5990a69ea3a62703c0747ae17
Diffstat (limited to 'sigchainlib')
-rw-r--r-- | sigchainlib/sigchain_dummy.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sigchainlib/sigchain_dummy.cc b/sigchainlib/sigchain_dummy.cc index 17bfe8f..0d62a7a 100644 --- a/sigchainlib/sigchain_dummy.cc +++ b/sigchainlib/sigchain_dummy.cc @@ -26,6 +26,8 @@ #include "sigchain.h" +#define ATTRIBUTE_UNUSED __attribute__((__unused__)) + static void log(const char* format, ...) { char buf[256]; va_list ap; @@ -39,17 +41,20 @@ static void log(const char* format, ...) { va_end(ap); } -extern "C" void ClaimSignalChain(int signal, struct sigaction* oldaction) { +extern "C" void ClaimSignalChain(int signal ATTRIBUTE_UNUSED, + struct sigaction* oldaction ATTRIBUTE_UNUSED) { log("ClaimSignalChain is not exported by the main executable."); abort(); } -extern "C" void UnclaimSignalChain(int signal) { +extern "C" void UnclaimSignalChain(int signal ATTRIBUTE_UNUSED) { log("UnclaimSignalChain is not exported by the main executable."); abort(); } -extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { +extern "C" void InvokeUserSignalHandler(int sig ATTRIBUTE_UNUSED, + siginfo_t* info ATTRIBUTE_UNUSED, + void* context ATTRIBUTE_UNUSED) { log("InvokeUserSignalHandler is not exported by the main executable."); abort(); } @@ -59,7 +64,8 @@ extern "C" void InitializeSignalChain() { abort(); } -extern "C" void EnsureFrontOfChain(int signal, struct sigaction* expected_action) { +extern "C" void EnsureFrontOfChain(int signal ATTRIBUTE_UNUSED, + struct sigaction* expected_action ATTRIBUTE_UNUSED) { log("EnsureFrontOfChain is not exported by the main executable."); abort(); } |