aboutsummaryrefslogtreecommitdiff
path: root/winsup/mingw/mingwex/feclearexcept.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2005-08-25 02:35:34 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2005-08-25 02:35:34 +0000
commit5092e4a714467dc7ee86a8bc33168ed8d66ce5cb (patch)
tree69d12dadc1615b81663c823b9158b9c9b263bcef /winsup/mingw/mingwex/feclearexcept.c
parent03ee0ba16382830c46830831553700c715b62309 (diff)
downloadnewlib-5092e4a714467dc7ee86a8bc33168ed8d66ce5cb.zip
newlib-5092e4a714467dc7ee86a8bc33168ed8d66ce5cb.tar.gz
newlib-5092e4a714467dc7ee86a8bc33168ed8d66ce5cb.tar.bz2
* mingwex/feclearexcept.c (feclearexcept): Change declaration.
Do not return a value. * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise. * mingwex/feraiseexcept.c (feraiseexcept): Likewise. * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise. * mingwex/fegetenv.c (fegetenv): Likewise. * mingwex/fesetenv.c (fesetenv): Likewise. * mingwex/feupdateenv.c (feupdateenv): Likewise. * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept, fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct prototypes.
Diffstat (limited to 'winsup/mingw/mingwex/feclearexcept.c')
-rw-r--r--winsup/mingw/mingwex/feclearexcept.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/mingw/mingwex/feclearexcept.c b/winsup/mingw/mingwex/feclearexcept.c
index e6017fc..127efb9 100644
--- a/winsup/mingw/mingwex/feclearexcept.c
+++ b/winsup/mingw/mingwex/feclearexcept.c
@@ -4,11 +4,10 @@
The feclearexcept function clears the supported exceptions
represented by its argument. */
-int feclearexcept (int excepts)
+void feclearexcept (int excepts)
{
fenv_t _env;
__asm__ volatile ("fnstenv %0;" : "=m" (_env)); /* get the env */
_env.__status_word &= ~(excepts & FE_ALL_EXCEPT); /* clear the except */
__asm__ volatile ("fldenv %0;" :: "m" (_env)); /*set the env */
- return 0;
}