Changeset

9151:fee3933ff346

pposix, signal: Ignore unused arguments.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 08 Aug 2018 09:28:04 +0200
parents 9150:c1d5f52274cf
children 9152:bad9e8b43f50
files util-src/pposix.c util-src/signal.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/pposix.c	Wed Aug 08 09:27:34 2018 +0200
+++ b/util-src/pposix.c	Wed Aug 08 09:28:04 2018 +0200
@@ -237,6 +237,7 @@
 }
 
 int lc_syslog_close(lua_State *L) {
+	(void)L;
 	closelog();
 
 	if(syslog_ident) {
@@ -649,6 +650,7 @@
 }
 
 int lc_abort(lua_State *L) {
+	(void)L;
 	abort();
 	return 0;
 }
--- a/util-src/signal.c	Wed Aug 08 09:27:34 2018 +0200
+++ b/util-src/signal.c	Wed Aug 08 09:28:04 2018 +0200
@@ -168,6 +168,7 @@
 int nsig = 0;
 
 static void sighook(lua_State *L, lua_Debug *ar) {
+	(void)ar;
 	/* restore the old hook */
 	lua_sethook(L, Hsig, Hmask, Hcount);