diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-01-26 15:15:23 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-01-26 15:15:23 +0100 |
commit | 549fa53225910f5341092d6647a1e3dd705b605f (patch) | |
tree | 04a37070ddefbeeb9def964aa2690d9d75e4c756 /libc/sysdeps/linux/alpha/bits | |
parent | ba48da4e3c8aa2478f30f7e3b745f3a355ed9442 (diff) |
*: silence some warnings
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/alpha/bits')
-rw-r--r-- | libc/sysdeps/linux/alpha/bits/syscalls.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/alpha/bits/syscalls.h b/libc/sysdeps/linux/alpha/bits/syscalls.h index ee56788a6..7ffd0253c 100644 --- a/libc/sysdeps/linux/alpha/bits/syscalls.h +++ b/libc/sysdeps/linux/alpha/bits/syscalls.h @@ -27,25 +27,28 @@ #ifndef __ASSEMBLER__ #define INLINE_SYSCALL_NCS(name, nr, args...) \ -({ \ +(__extension__ \ + ({ \ long _sc_ret, _sc_err; \ inline_syscall##nr(name, args); \ - if (__builtin_expect (_sc_err, 0)) \ + if (unlikely (_sc_err)) \ { \ __set_errno (_sc_ret); \ _sc_ret = -1L; \ } \ _sc_ret; \ -}) + }) \ +) #define INTERNAL_SYSCALL_NCS(name, err_out, nr, args...) \ -({ \ +(__extension__ \ + ({ \ long _sc_ret, _sc_err; \ inline_syscall##nr(name, args); \ err_out = _sc_err; \ _sc_ret; \ -}) - + }) \ +) #define INTERNAL_SYSCALL_DECL(err) long int err #define INTERNAL_SYSCALL_ERROR_P(val, err) err #define INTERNAL_SYSCALL_ERRNO(val, err) val |