From e544dcd508d61c3736d43ab6bbaf1fe83130819c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 8 Feb 2012 12:36:16 -0800 Subject: [PATCH] alpha: Eliminate set-but-not-used warnings with internal syscalls. --- ChangeLog.alpha | 2 ++ sysdeps/unix/alpha/sysdep.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.alpha b/ChangeLog.alpha index afcf75aa106..42e3c8500ca 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,5 +1,7 @@ 2012-02-08 Richard Henderson + * 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. diff --git a/sysdeps/unix/alpha/sysdep.h b/sysdeps/unix/alpha/sysdep.h index 64add9e339c..224c95d3b5f 100644 --- a/sysdeps/unix/alpha/sysdep.h +++ b/sysdeps/unix/alpha/sysdep.h @@ -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) -- 2.47.2