summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 19:04:07 +0000
committerphk <phk@FreeBSD.org>2003-05-31 19:04:07 +0000
commit771190561cea6e8c36a445e1f195e4c2ffd040b3 (patch)
tree3662e1a8a972d93444be11f0668daee7175b215d /sys
parent1c8a4fd968063a6a58db964bf63308a1a036e1c5 (diff)
downloadFreeBSD-src-771190561cea6e8c36a445e1f195e4c2ffd040b3.zip
FreeBSD-src-771190561cea6e8c36a445e1f195e4c2ffd040b3.tar.gz
Protect macro with do { ... } while (0)
Found by: FlexeLint
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/math_emulate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/i386/math_emulate.c b/sys/i386/i386/math_emulate.c
index a7887f4..bf990b0 100644
--- a/sys/i386/i386/math_emulate.c
+++ b/sys/i386/i386/math_emulate.c
@@ -55,7 +55,8 @@
#define bswapw(x) __asm__("xchgb %%al,%%ah":"+a" ((short)(x)))
#define ST(x) (*__st((x)))
#define PST(x) ((const temp_real *) __st((x)))
-#define math_abort(tfp, signo) tfp->tf_eip = oldeip; return (signo);
+#define math_abort(tfp, signo) \
+ do { tfp->tf_eip = oldeip; return (signo);} while(0)
/*
* We don't want these inlined - it gets too messy in the machine-code.
OpenPOWER on IntegriCloud