HomeFreeBSD

Fix compiler warnings in iostat

Description

Fix compiler warnings in iostat

Raise WARNS from 1 to 6 (the default)
Fix warnings:

  • Use C99 designated initializers for structs, and initialize all fields
  • Mark global variables as static
  • Mark unused function arguments
  • Be careful about signed/unsigned comparisons

Reviewed by: eadler
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D5328

Details

Provenance
asomersAuthored on
Reviewer
eadler
Differential Revision
D5328: Fix compiler warnings in iostat
Parents
rS295767: Silence VPS-Studio errors (V512). These buffer underflows are intentional.
Branches
Unknown
Tags
Unknown