HomeFreeBSD

libthr: fix warnings from GCC when WARNS=6

Description

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

Details

Provenance
vangyzenAuthored on
Reviewer
kib
Differential Revision
D10870: libthr: fix warnings from GCC when WARNS=6
Parents
rS318748: Honor WITHOUT_TFTP for check-old* and delete-old* targets.
Branches
Unknown
Tags
Unknown