Page MenuHomeFreeBSD

Fix compiler warnings in iostat
ClosedPublic

Authored by asomers on Feb 18 2016, 6:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 7:54 AM
Unknown Object (File)
Wed, Nov 13, 1:24 AM
Unknown Object (File)
Mon, Nov 4, 4:21 AM
Unknown Object (File)
Oct 7 2024, 3:37 PM
Unknown Object (File)
Oct 7 2024, 8:28 AM
Unknown Object (File)
Oct 4 2024, 7:52 AM
Unknown Object (File)
Oct 4 2024, 5:56 AM
Unknown Object (File)
Oct 1 2024, 11:11 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers retitled this revision from to Fix compiler warnings in iostat.
asomers updated this object.
asomers edited the test plan for this revision. (Show Details)
asomers added a reviewer: eadler.
eadler edited edge metadata.
This revision is now accepted and ready to land.Feb 18 2016, 7:35 PM
This revision was automatically updated to reflect the committed changes.