summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-22 13:41:55 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-28 11:43:03 +0200
commita7c8cb36d1fb972082ef4f0039300d051ade2de9 (patch)
tree41f3e6eaab6dc060d00bc376bc59f19f5d3fe90a /lib
parente511691315f6704961a0c8e3a9725f1a589a5c11 (diff)
Silence warnings about unused arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/execinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/execinfo.c b/lib/execinfo.c
index a59f6a9..499b0c3 100644
--- a/lib/execinfo.c
+++ b/lib/execinfo.c
@@ -7,6 +7,7 @@
int backtrace(void **buffer, int size)
{
void *addr = __builtin_return_address(0);
+ (void)buffer; (void)size;
errmsg("backtrace() is not implemented. Called from %p", addr);
return 0;
@@ -14,12 +15,14 @@ int backtrace(void **buffer, int size)
char **backtrace_symbols(void *const *buffer, int size)
{
+ (void)buffer; (void)size;
errmsg("backtrace_symbols() is not implemented");
return NULL;
}
void backtrace_symbols_fd(void *const *buffer, int size, int fd)
{
+ (void)buffer; (void)size; (void)fd;
errmsg("backtrace_symbols_fd() is not implemented");
}
#endif /* !HAVE_EXECINFO_H */