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/x86_64/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/x86_64/bits')
-rw-r--r-- | libc/sysdeps/linux/x86_64/bits/syscalls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/x86_64/bits/syscalls.h b/libc/sysdeps/linux/x86_64/bits/syscalls.h index 8042ab8b9..e4ea4d833 100644 --- a/libc/sysdeps/linux/x86_64/bits/syscalls.h +++ b/libc/sysdeps/linux/x86_64/bits/syscalls.h @@ -67,16 +67,18 @@ /* Define a macro which expands inline into the wrapper code for a system call. */ #define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \ +(__extension__ \ ({ \ unsigned long resultvar; \ LOAD_ARGS_##nr (args) \ LOAD_REGS_##nr \ - __asm__ __volatile__ ( \ + __asm__ __volatile__ ( \ "syscall\n\t" \ : "=a" (resultvar) \ : "0" (name) ASM_ARGS_##nr : "memory", "cc", "r11", "cx"); \ - (long) resultvar; }) - + (long) resultvar; \ + }) \ +) #define LOAD_ARGS_0() #define LOAD_REGS_0 #define ASM_ARGS_0 |