aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-08 09:28:04 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-08 09:28:04 +0200
commit1a23a874bcb503f8e482b4c46f0796d3cfdcfccd (patch)
treee04e467db39eb3a2bb728ae8bbd523206a90ae4e /util-src
parent9d9392a941a76d0b3f8c9bd471bd40a306bd156b (diff)
downloadprosody-1a23a874bcb503f8e482b4c46f0796d3cfdcfccd.tar.gz
prosody-1a23a874bcb503f8e482b4c46f0796d3cfdcfccd.zip
pposix, signal: Ignore unused arguments.
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c2
-rw-r--r--util-src/signal.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 656bda07..435af6f0 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -237,6 +237,7 @@ int lc_syslog_log(lua_State *L) {
}
int lc_syslog_close(lua_State *L) {
+ (void)L;
closelog();
if(syslog_ident) {
@@ -649,6 +650,7 @@ int lc_getrlimit(lua_State *L) {
}
int lc_abort(lua_State *L) {
+ (void)L;
abort();
return 0;
}
diff --git a/util-src/signal.c b/util-src/signal.c
index 9bbdb37e..c696a3a2 100644
--- a/util-src/signal.c
+++ b/util-src/signal.c
@@ -168,6 +168,7 @@ int signals[MAX_PENDING_SIGNALS];
int nsig = 0;
static void sighook(lua_State *L, lua_Debug *ar) {
+ (void)ar;
/* restore the old hook */
lua_sethook(L, Hsig, Hmask, Hcount);