Module Name:    src
Committed By:   riastradh
Date:           Wed Aug  7 15:37:46 UTC 2019

Modified Files:
        src/lib/libc/gdtoa: gdtoaimp.h

Log Message:
Mark the libc fegetround weak reference unused.

Not all .c files that include gdtoaimp.h use it, which makes clang
unhappy.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/gdtoa/gdtoaimp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gdtoa/gdtoaimp.h
diff -u src/lib/libc/gdtoa/gdtoaimp.h:1.16 src/lib/libc/gdtoa/gdtoaimp.h:1.17
--- src/lib/libc/gdtoa/gdtoaimp.h:1.16	Thu Aug  1 02:27:43 2019
+++ src/lib/libc/gdtoa/gdtoaimp.h	Wed Aug  7 15:37:46 2019
@@ -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 @@ THIS SOFTWARE.
 #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

Reply via email to