aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2017-05-23 16:12:50 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2017-05-23 16:12:50 +0000
commit5a6d7b723f590eec8b13ff40c53facea67983230 (patch)
tree8f17ffb9d2673180e743bc22fbe91d8b6f5c6871 /include/stdio.h
parent583b5f3561ba67bb192e8a2ef3c432e1a624d874 (diff)
downloadsrc-5a6d7b723f590eec8b13ff40c53facea67983230.tar.gz
src-5a6d7b723f590eec8b13ff40c53facea67983230.zip
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
Notes
Notes: svn path=/head/; revision=318749
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h3
1 files changed, 3 insertions, 0 deletions
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