]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libthr: fix warnings from GCC when WARNS=6
authorvangyzen <vangyzen@FreeBSD.org>
Tue, 23 May 2017 16:12:50 +0000 (16:12 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Tue, 23 May 2017 16:12:50 +0000 (16:12 +0000)
commit99a8da45370ca5853a2623f9e32ed445599a7f4a
tree8f17ffb9d2673180e743bc22fbe91d8b6f5c6871
parentd94dc630cb80262ee342b021f995f77c7dd2bf9f
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
lib/libc/include/libc_private.h
lib/libthr/thread/thr_exit.c
lib/libthr/thread/thr_kern.c
lib/libthr/thread/thr_list.c
lib/libthr/thread/thr_mutex.c
lib/libthr/thread/thr_private.h