HomeFreeBSD

bootparamd: Fix several warnings and increase warn level to 6.

Description

bootparamd: Fix several warnings and increase warn level to 6.

  • Increase WARNS to 6.
  • Except -Wcast-align and -Wincompatible-pointer-types-discards-qualifiers checks.
  • Use ANSI C prototype.
  • Statically variables and functions.
  • Add extern declaration for global variables.
  • Rename local variables to resolve shadow warnings.

PR: 71667
MFC after: 2 weeks

Details

Provenance
nyanAuthored on Jan 2 2021, 3:36 AM
Parents
rG4e0c81c5fafb: tcgetwinsize(3): provide man page
Branches
Unknown
Tags
Unknown