Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gdtoa Mark the libc fegetround weak reference unused.
details: https://anonhg.NetBSD.org/src/rev/9a095fbe9f26
branches: trunk
changeset: 964574:9a095fbe9f26
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Aug 07 15:37:46 2019 +0000
description:
Mark the libc fegetround weak reference unused.
Not all .c files that include gdtoaimp.h use it, which makes clang
unhappy.
diffstat:
lib/libc/gdtoa/gdtoaimp.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 8e0e69146867 -r 9a095fbe9f26 lib/libc/gdtoa/gdtoaimp.h
--- a/lib/libc/gdtoa/gdtoaimp.h Wed Aug 07 15:29:02 2019 +0000
+++ b/lib/libc/gdtoa/gdtoaimp.h Wed Aug 07 15:37:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdtoaimp.h,v 1.16 2019/08/01 02:27:43 riastradh Exp $ */
+/* $NetBSD: gdtoaimp.h,v 1.17 2019/08/07 15:37:46 riastradh Exp $ */
/****************************************************************
@@ -200,7 +200,8 @@
#include "gd_qnan.h"
#ifdef Honor_FLT_ROUNDS
#include <fenv.h>
-__weakref_visible int __libc_fegetround_ref(void) __weak_reference(fegetround);
+__unused __weakref_visible int __libc_fegetround_ref(void)
+ __weak_reference(fegetround);
#define fegetround() \
(__libc_fegetround_ref ? __libc_fegetround_ref() : FE_TONEAREST)
#endif
Home |
Main Index |
Thread Index |
Old Index