build: avoid warnings in daemon/guestfsd.c
authorJim Meyering <meyering@redhat.com>
Thu, 6 Aug 2009 13:28:48 +0000 (15:28 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 10 Aug 2009 09:53:33 +0000 (11:53 +0200)
* daemon/guestfsd.c (print_arginfo, print_shell_quote): Mark each
"info" parameter as unused.

daemon/guestfsd.c

index 07a1c5e..07a952f 100644 (file)
@@ -718,7 +718,7 @@ split_lines (char *str)
  */
 static int
 print_shell_quote (FILE *stream,
-                   const struct printf_info *info,
+                   const struct printf_info *info ATTRIBUTE_UNUSED,
                    const void *const *args)
 {
 #define SAFE(c) (isalnum((c)) ||                                       \
@@ -751,7 +751,7 @@ print_sysroot_shell_quote (FILE *stream,
 
 #ifdef HAVE_REGISTER_PRINTF_SPECIFIER
 static int
-print_arginfo (const struct printf_info *info,
+print_arginfo (const struct printf_info *info ATTRIBUTE_UNUSED,
                size_t n, int *argtypes, int *size)
 {
   if (n > 0) {