Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] mathfunc: mark an unused variable as unused



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