]> sourceware.org Git - glibc.git/commitdiff
Fix warnings from ARM soft-float fpu_control.h.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 18 Jun 2013 00:35:03 +0000 (00:35 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 18 Jun 2013 00:35:03 +0000 (00:35 +0000)
ports/ChangeLog.arm
ports/sysdeps/arm/fpu_control.h

index c7e22cc0d1bd8db3bcabea62234d2e582087ba96..a901c6ea09f2c3504e1d7e55aaf21f7f57498e58 100644 (file)
@@ -1,5 +1,10 @@
 2013-06-18  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/arm/fpu_control.h [!(_LIBC && !_LIBC_TEST) &&
+       __SOFTFP__] (_FPU_GETCW): Define to (cw) = 0.
+       [!(_LIBC && !_LIBC_TEST) && __SOFTFP__] (_FPU_SETCW): Define to
+       (void) (cw).
+
        * sysdeps/arm/fpu_control.h [!_LIBC && __SOFTFP__]: Change
        condition to [!(_LIBC && !_LIBC_TEST) && __SOFTFP__].
        * sysdeps/arm/test-fpucw.c: New file.
index 3ceb58b2fc503ab6ff4ba6191d23cc9dd6a95a76..513e6948a1164235b15d55e87419f12594b4039c 100644 (file)
@@ -24,8 +24,8 @@
 #define _FPU_RESERVED 0xffffffff
 #define _FPU_DEFAULT  0x00000000
 typedef unsigned int fpu_control_t;
-#define _FPU_GETCW(cw) 0
-#define _FPU_SETCW(cw) do { } while (0)
+#define _FPU_GETCW(cw) (cw) = 0
+#define _FPU_SETCW(cw) (void) (cw)
 extern fpu_control_t __fpu_control;
 
 #else
This page took 0.046599 seconds and 5 git commands to generate.