mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-11 07:40:05 +00:00
Fix warnings from generic _FPU_GETCW
This commit is contained in:
parent
d981452619
commit
82123268ac
@ -1,3 +1,10 @@
|
|||||||
|
2012-12-06 Chris Metcalf <cmetcalf@tilera.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
|
||||||
|
0, not just to plain "0" as a statement.
|
||||||
|
(_FPU_SETCW): Define to (void) (cw), rather than doing nothing
|
||||||
|
with cw.
|
||||||
|
|
||||||
2012-12-06 Joseph Myers <joseph@codesourcery.com>
|
2012-12-06 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* NEWS: Use sourceware.org in Bugzilla URL.
|
* NEWS: Use sourceware.org in Bugzilla URL.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* FPU control word definitions. Stub version.
|
/* FPU control word definitions. Stub version.
|
||||||
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1996-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -29,8 +29,8 @@
|
|||||||
typedef unsigned int fpu_control_t;
|
typedef unsigned int fpu_control_t;
|
||||||
|
|
||||||
/* Macros for accessing the hardware control word. */
|
/* Macros for accessing the hardware control word. */
|
||||||
#define _FPU_GETCW(cw) 0
|
#define _FPU_GETCW(cw) (cw) = 0
|
||||||
#define _FPU_SETCW(cw) do { } while (0)
|
#define _FPU_SETCW(cw) (void) (cw)
|
||||||
|
|
||||||
/* Default control word set at startup. */
|
/* Default control word set at startup. */
|
||||||
extern fpu_control_t __fpu_control;
|
extern fpu_control_t __fpu_control;
|
||||||
|
Loading…
Reference in New Issue
Block a user