HomeFreeBSD

libthr: fix warnings at WARNS=6

Description

libthr: fix warnings at WARNS=6

Fix warnings about the following when WARNS=6 (which I will commit soon):

  • casting away const
  • no previous 'extern' declaration for non-static variable
  • others as explained by #pragmas and comments
  • unused parameters

The last is the only functional change.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10808

Details

Provenance
vangyzenAuthored on
Reviewer
kib
Differential Revision
D10808: Increase libthr WARNS to the default of 6, and fix the warnings
Parents
rS318538: MFC r317505:
Branches
Unknown
Tags
Unknown