Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix "set but not used" warnings for X##_s in soft-fp.
  • Loading branch information
Joseph Myers committed Dec 5, 2012
1 parent 66ca5a5 commit a0d7066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,5 +1,8 @@
2012-12-05 Joseph Myers <joseph@codesourcery.com>

* soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
((unused)).

* sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.

* stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
Expand Down
6 changes: 4 additions & 2 deletions soft-fp/op-common.h
Expand Up @@ -29,8 +29,10 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#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)

/*
Expand Down

0 comments on commit a0d7066

Please sign in to comment.