Fix "set but not used" warnings for powerpc64
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 6 Dec 2012 14:50:45 +0000 (20:20 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 6 Dec 2012 14:50:45 +0000 (20:20 +0530)
ChangeLog
sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h

index 9be6120..10e1752 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
        * stdio-common/tst-put-error.c (do_test): Add newline to the
        padded test to ensure flush.
 
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
+       (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
+
 2012-12-05  Jeff Law  <law@redhat.com>
 
        * sunrpc/etc.rpc (fedfs_admin): Add entry.
index 9b0693a..059cf70 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (C) 1992,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2012
-       Free Software Foundation, Inc.
+/* Copyright (C) 1992-2012, Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
   INTERNAL_SYSCALL_NCS (__NR_##name, err, nr, args)
 
 #undef INTERNAL_SYSCALL_DECL
-#define INTERNAL_SYSCALL_DECL(err) long int err
+#define INTERNAL_SYSCALL_DECL(err) long int err __attribute__ ((unused))
 
 #undef INTERNAL_SYSCALL_ERROR_P
 #define INTERNAL_SYSCALL_ERROR_P(val, err) \