summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-03-30 14:43:17 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-03-30 14:43:17 +0000
commit6cf0cf0ca400062a03c10a92d60ec3013569a383 (patch)
treed5a12023011770ccd6ef6b2ef8ea432c5c4f9eb3
parent15aa6a1a732eef1049dbc64d7ede9236772cafcf (diff)
[lib] Mark most arguments in DEFUN_CMD_FUNC_TEXT as potentially unused
2006-03-30 Paul Jakma <paul.jakma@sun.com> * command.h: (DEFUN_CMD_FUNC_TEXT) Annotate arguments as potentially being unused.
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/command.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 1618dd8d..7511cdf4 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-30 Paul Jakma <paul.jakma@sun.com>
+
+ * command.h: (DEFUN_CMD_FUNC_TEXT) Annotate arguments as
+ potentially being unused.
+
2006-03-27 Paul Jakma <paul.jakma@sun.com>
* memtypes.awk: Fix gensub call, g should be a string..
diff --git a/lib/command.h b/lib/command.h
index fbe6a0a1..26013e22 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -183,7 +183,10 @@ struct desc
#define DEFUN_CMD_FUNC_TEXT(funcname) \
static int funcname \
- (struct cmd_element *self, struct vty *vty, int argc, const char *argv[])
+ (struct cmd_element *self __attribute__ ((unused)), \
+ struct vty *vty __attribute__ ((unused)), \
+ int argc __attribute__ ((unused)), \
+ const char *argv[] __attribute__ ((unused)) )
/* DEFUN for vty command interafce. Little bit hacky ;-). */
#define DEFUN(funcname, cmdname, cmdstr, helpstr) \