This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi!
On Wed, 20 Feb 2013 11:25:22 -0500, Carlos O'Donell <carlos@redhat.com> wrote:
> > static union { unsigned char __c[4]; float __d; } __nan_union
> > - __attribute_used__ = { __nan_bytes };
> > + __attribute__ ((unused)) = { __nan_bytes };
> Please fix this to use __unused__.
>
> We should not use attributes that are in the user's namespace.
Pushed as commit 50022a93fcc36a0130b9f882709ff69f4b91c0cc:
* sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
__attribute__ ((unused)) to __attribute__ ((__unused__)).
ports/
* sysdeps/mips/bits/nan.h [!__GNUC__] (__nan_union): Change
__attribute__ ((unused)) to __attribute__ ((__unused__)).
diff --git ports/sysdeps/mips/bits/nan.h ports/sysdeps/mips/bits/nan.h
index 8f4666d..7aa157b 100644
--- ports/sysdeps/mips/bits/nan.h
+++ ports/sysdeps/mips/bits/nan.h
@@ -50,7 +50,7 @@
# endif
static union { unsigned char __c[4]; float __d; } __nan_union
- __attribute__ ((unused)) = { __nan_bytes };
+ __attribute__ ((__unused__)) = { __nan_bytes };
# define NAN (__nan_union.__d)
#endif /* GCC. */
diff --git sysdeps/ieee754/bits/nan.h sysdeps/ieee754/bits/nan.h
index a1e6a51..935271a 100644
--- sysdeps/ieee754/bits/nan.h
+++ sysdeps/ieee754/bits/nan.h
@@ -46,7 +46,7 @@
# endif
static union { unsigned char __c[4]; float __d; } __nan_union
- __attribute__ ((unused)) = { __nan_bytes };
+ __attribute__ ((__unused__)) = { __nan_bytes };
# define NAN (__nan_union.__d)
#endif /* GCC. */
GrÃÃe,
Thomas
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |