summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-01-26 15:15:23 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-01-26 15:15:23 +0100
commit549fa53225910f5341092d6647a1e3dd705b605f (patch)
tree04a37070ddefbeeb9def964aa2690d9d75e4c756 /libc/sysdeps/linux/bfin
parentba48da4e3c8aa2478f30f7e3b745f3a355ed9442 (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/bfin')
-rw-r--r--libc/sysdeps/linux/bfin/bits/syscalls.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/bfin/bits/syscalls.h b/libc/sysdeps/linux/bfin/bits/syscalls.h
index 6230b03d8..da549ff58 100644
--- a/libc/sysdeps/linux/bfin/bits/syscalls.h
+++ b/libc/sysdeps/linux/bfin/bits/syscalls.h
@@ -7,7 +7,8 @@
#ifndef __ASSEMBLER__
#define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \
-({ \
+(__extension__ \
+ ({ \
long __res; \
__asm__ __volatile__ ( \
"excpt 0;\n\t" \
@@ -15,8 +16,8 @@
: "qA" (name) ASMFMT_##nr(args) \
: "memory","CC"); \
__res; \
-})
-
+ }) \
+)
#define ASMFMT_0()
#define ASMFMT_1(arg1) \