summary refs log tree commit diff
diff options
context:
space:
mode:
authorEitan Adler <lists@eitanadler.com>2018-06-06 05:59:58 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2018-06-06 09:35:38 +0100
commit96ec8cbbf4b115bac0f3468beacae40e017541d8 (patch)
treeff84e707e3ab78e64f65ddbb5dd6a226ed1f5e59
parent6a3b23e9cc42541e9eeed61181965324b6476dd2 (diff)
downloadzsh-96ec8cbbf4b115bac0f3468beacae40e017541d8.tar.gz
zsh-96ec8cbbf4b115bac0f3468beacae40e017541d8.tar.xz
zsh-96ec8cbbf4b115bac0f3468beacae40e017541d8.zip
42938: name argument to math_func is not unused
-rw-r--r--ChangeLog3
-rw-r--r--Src/Modules/mathfunc.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 500ba10bd..9de7d953b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-06-06  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* Eitan: 42938: Src/Modules/mathfunc.c: name argument to
+	math_func is not unused.
+
 	* Eitan: 42939: Src/Zle/zle_params.c: pm argument to
 	set_registers is not unused.
 
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;