]> git.puffer.fish Git - mirror/frr.git/commitdiff
[lib] Mark most arguments in DEFUN_CMD_FUNC_TEXT as potentially unused
authorPaul Jakma <paul.jakma@sun.com>
Thu, 30 Mar 2006 14:43:17 +0000 (14:43 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 30 Mar 2006 14:43:17 +0000 (14:43 +0000)
2006-03-30 Paul Jakma <paul.jakma@sun.com>

* command.h: (DEFUN_CMD_FUNC_TEXT) Annotate arguments as
  potentially being unused.

lib/ChangeLog
lib/command.h

index 1618dd8d703bb14f0d3e2885133bdf7084b1670a..7511cdf423b232d1b28ec91f61be198c7e5795d9 100644 (file)
@@ -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..
index fbe6a0a159240e0babc318732e46852a07d48485..26013e2263fc4b47bfc0e578cb48341102ac5738 100644 (file)
@@ -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) \