From a0d7066a1c6b86adbf1fa13f14038e30885cf1da Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 5 Dec 2012 20:04:32 +0000 Subject: [PATCH] Fix "set but not used" warnings for X##_s in soft-fp. --- ChangeLog | 3 +++ soft-fp/op-common.h | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a577d3d..0acc46b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2012-12-05 Joseph Myers + * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__ + ((unused)). + * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include . * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index 12fb16e..8855ad3 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -29,8 +29,10 @@ License along with the GNU C Library; if not, see . */ -#define _FP_DECL(wc, X) \ - _FP_I_TYPE X##_c __attribute__((unused)), X##_s, X##_e; \ +#define _FP_DECL(wc, X) \ + _FP_I_TYPE X##_c __attribute__((unused)); \ + _FP_I_TYPE X##_s __attribute__((unused)); \ + _FP_I_TYPE X##_e; \ _FP_FRAC_DECL_##wc(X) /* -- 2.7.4