Page MenuHomeFreeBSD

[iscsictl] Fix compiler issues on gcc-6.4
ClosedPublic

Authored by adrian on Nov 1 2020, 2:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 7:49 PM
Unknown Object (File)
Sat, Apr 27, 7:49 PM
Unknown Object (File)
Sat, Apr 27, 7:49 PM
Unknown Object (File)
Sat, Apr 27, 7:48 PM
Unknown Object (File)
Sat, Apr 27, 5:36 PM
Unknown Object (File)
Thu, Apr 18, 7:19 PM
Unknown Object (File)
Thu, Apr 18, 6:10 PM
Unknown Object (File)
Thu, Apr 18, 1:48 PM
Subscribers

Details

Summary

This fixes two compiler warnings-that-are-errors:

  • don't compare a uint64_t to be >= 0; it will always be that
  • don't double-define yylex(); the definition for it is provided in a library header file.

Diff Detail

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

Event Timeline

adrian requested review of this revision.Nov 1 2020, 2:31 AM

hi! please lemme know what you think!

usr.bin/iscsictl/parse.y
362 ↗(On Diff #79025)

That doesn't look right at all now. What is it testing?

This revision is now accepted and ready to land.Nov 1 2020, 3:45 AM