about summary refs log tree commit diff
path: root/Src/Modules/example.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-06-02 22:14:25 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-06-02 22:14:25 +0000
commitfb0937a69eb38e744577aa94a6338135f6c1c9b4 (patch)
tree70c7404736602da0e91710dc3a991e3d2dc5377a /Src/Modules/example.c
parent30a139fe894f76ad256281b60a36c693bc561245 (diff)
downloadzsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.tar.gz
zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.tar.xz
zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.zip
Marked unused parameters with the new UNUSED() macro.
Diffstat (limited to 'Src/Modules/example.c')
-rw-r--r--Src/Modules/example.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Src/Modules/example.c b/Src/Modules/example.c
index 793d743fc..ab3a70592 100644
--- a/Src/Modules/example.c
+++ b/Src/Modules/example.c
@@ -39,7 +39,7 @@ static char **arrparam;
 
 /**/
 static int
-bin_example(char *nam, char **args, Options ops, int func)
+bin_example(char *nam, char **args, Options ops, UNUSED(int func))
 {
     unsigned char c;
     char **oargs = args, **p = arrparam;
@@ -76,7 +76,7 @@ bin_example(char *nam, char **args, Options ops, int func)
 
 /**/
 static int
-cond_p_len(char **a, int id)
+cond_p_len(char **a, UNUSED(int id))
 {
     char *s1 = cond_str(a, 0, 0);
 
@@ -91,7 +91,7 @@ cond_p_len(char **a, int id)
 
 /**/
 static int
-cond_i_ex(char **a, int id)
+cond_i_ex(char **a, UNUSED(int id))
 {
     char *s1 = cond_str(a, 0, 0), *s2 = cond_str(a, 1, 0);
 
@@ -100,7 +100,7 @@ cond_i_ex(char **a, int id)
 
 /**/
 static mnumber
-math_sum(char *name, int argc, mnumber *argv, int id)
+math_sum(UNUSED(char *name), int argc, mnumber *argv, UNUSED(int id))
 {
     mnumber ret;
     int f = 0;
@@ -129,7 +129,7 @@ math_sum(char *name, int argc, mnumber *argv, int id)
 
 /**/
 static mnumber
-math_length(char *name, char *arg, int id)
+math_length(UNUSED(char *name), char *arg, UNUSED(int id))
 {
     mnumber ret;
 
@@ -186,7 +186,7 @@ static struct funcwrap wrapper[] = {
 
 /**/
 int
-setup_(Module m)
+setup_(UNUSED(Module m))
 {
     printf("The example module has now been set up.\n");
     fflush(stdout);
@@ -224,7 +224,7 @@ cleanup_(Module m)
 
 /**/
 int
-finish_(Module m)
+finish_(UNUSED(Module m))
 {
     printf("Thank you for using the example module.  Have a nice day.\n");
     fflush(stdout);