diff options
author | paul <paul> | 2006-03-30 14:43:17 +0000 |
---|---|---|
committer | paul <paul> | 2006-03-30 14:43:17 +0000 |
commit | 9714dff22c15d6a119438b773504f3c33eb5485c (patch) | |
tree | 71b92dbc5b044d60db49443cbb3c030817a1eba6 /lib/command.h | |
parent | c2a58ed5e0c1733bcd39da0834b8f19a60aab96c (diff) | |
download | quagga-9714dff22c15d6a119438b773504f3c33eb5485c.tar.bz2 quagga-9714dff22c15d6a119438b773504f3c33eb5485c.tar.xz |
[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.
Diffstat (limited to 'lib/command.h')
-rw-r--r-- | lib/command.h | 5 |
1 files changed, 4 insertions, 1 deletions
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) \ |