From 5a6d7b723f590eec8b13ff40c53facea67983230 Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Tue, 23 May 2017 16:12:50 +0000 Subject: libthr: fix warnings from GCC when WARNS=6 Fix warnings about: - redundant declarations - a local variable shadowing a global function (dlinfo) - an old-style function definition (with an empty parameter list) - a variable that is possibly used uninitialized "make tinderbox" passes this time, except for a few unrelated kernel failures. Reviewed by: kib MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10870 --- include/stdio.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index 73e92a5462c7..0b497d56e366 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -464,7 +464,10 @@ static __inline int __sputc(int _c, FILE *_p) { (*(p)->_p = (c), (int)*(p)->_p++)) #endif +#ifndef __LIBC_ISTHREADED_DECLARED +#define __LIBC_ISTHREADED_DECLARED extern int __isthreaded; +#endif #ifndef __cplusplus -- cgit v1.3