* [PATCH] mathfunc: mark an unused variable as unused
@ 2018-06-06 5:59 Eitan Adler
0 siblings, 0 replies; only message in thread
From: Eitan Adler @ 2018-06-06 5:59 UTC (permalink / raw)
To: zsh-workers; +Cc: Eitan Adler
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@eitanadler.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-06 7:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 5:59 [PATCH] mathfunc: mark an unused variable as unused Eitan Adler
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).