]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
alpha: Eliminate set-but-not-used warnings with internal syscalls.
authorRichard Henderson <rth@twiddle.net>
Wed, 8 Feb 2012 20:36:16 +0000 (12:36 -0800)
committerRichard Henderson <rth@twiddle.net>
Thu, 9 Feb 2012 01:03:27 +0000 (17:03 -0800)
ChangeLog.alpha
sysdeps/unix/alpha/sysdep.h

index afcf75aa106bad93bf0adeb1dde4cc2695413854..42e3c8500cab49b23f2ca6fe3cb1b45284ae76e1 100644 (file)
@@ -1,5 +1,7 @@
 2012-02-08  Richard Henderson  <rth@twiddle.net>
 
+       * sysdeps/unix/alpha/sysdep.h (INTERNAL_SYSCALL_DECL): Mark unused.
+
        * sysdeps/unix/sysv/linux/alpha/bits/stat.h (_STAT_VER_LINUX): New.
 
        * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): New.
index 64add9e339c590596b8d2b1898a0da1c28a48f28..224c95d3b5f4df83a4fd151a749ea666621ddb67 100644 (file)
@@ -190,7 +190,9 @@ __LABEL(name)                                               \
        _sc_ret;                                        \
 })
 
-#define INTERNAL_SYSCALL_DECL(err)             long int err
+#define INTERNAL_SYSCALL_DECL(err) \
+       long int err __attribute__((unused))
+
 /* Make sure and "use" the variable that we're not returning,
    in order to suppress unused variable warnings.  */
 #define INTERNAL_SYSCALL_ERROR_P(val, err)     ((void)val, err)