Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] mathfunc: mark an unused variable as unused
- X-seq: zsh-workers 42938
- From: Eitan Adler <lists@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] mathfunc: mark an unused variable as unused
- Date: Wed, 6 Jun 2018 05:59:58 +0000
- Cc: Eitan Adler <lists@xxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=from:to:cc:subject:date:message-id; bh=58DaIB5ScM/NOUBwYMskAf1Mwx198K4pkKko0LfQbd8=; b=E3WURvOJYlmiO5KHPpcdbQZHWAaqKt3yvVRwzCtjibnImDwdVBOlpJUNnmFJ8OOltC +0R7sR/gBJwydzwm2fdieIG9vB4l3/70LY5H1KLTi2l80HUViJp/1EXTxlw3roUWn522 L7Liv8hiJYoCdrwqCQlKhrbomb+5qNzefdZsk=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Leaving the variable there since its a more invasive change to remove it
it, and it may have value for reporting errors.
Signed-off-by: Eitan Adler <lists@xxxxxxxxxxxxxx>
---
Src/Modules/mathfunc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/Modules/mathfunc.c b/Src/Modules/mathfunc.c
index 01a2913ef..d1c3e089a 100644
--- a/Src/Modules/mathfunc.c
+++ b/Src/Modules/mathfunc.c
@@ -164,7 +164,7 @@ static struct mathfunc mftab[] = {
/**/
static mnumber
-math_func(char *name, int argc, mnumber *argv, int id)
+math_func(UNUSED(char *name), int argc, mnumber *argv, int id)
{
mnumber ret;
double argd = 0, argd2 = 0, retd = 0;
--
2.17.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author