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/88ab68b6759e
branches:  trunk
changeset: 458717:88ab68b6759e
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 887555a05b45 -r 88ab68b6759e 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