bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: avoid another warning


From: Eric Blake
Subject: [PATCH] build: avoid another warning
Date: Wed, 31 Mar 2010 11:50:17 -0600

Noticed on cygwin:
get-mb-cur-max.c: In function 'main':
get-mb-cur-max.c:27: error: unused parameter 'argc' [-Wunused-parameter]

* tests/get-mb-cur-max.c (main): Mark argc unused.
---
 tests/get-mb-cur-max.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/get-mb-cur-max.c b/tests/get-mb-cur-max.c
index 48e2713..d9a81a3 100644
--- a/tests/get-mb-cur-max.c
+++ b/tests/get-mb-cur-max.c
@@ -24,7 +24,7 @@
 #include "progname.h"

 int
-main (int argc, char **argv)
+main (int argc _GL_UNUSED, char **argv)
 {
   set_program_name (argv[0]);
   if (setlocale (LC_ALL, argv[1]))
-- 
1.6.6.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]