Page MenuHomeFreeBSD

rs: Fix various harmless warnings.
ClosedPublic

Authored by jhb on Sep 29 2022, 10:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 6, 2:07 AM
Unknown Object (File)
Thu, Sep 5, 10:13 AM
Unknown Object (File)
Aug 21 2024, 3:04 AM
Unknown Object (File)
Aug 8 2024, 4:05 AM
Unknown Object (File)
Jul 25 2024, 5:17 AM
Unknown Object (File)
Jul 17 2024, 8:52 AM
Unknown Object (File)
Jul 12 2024, 3:41 AM
Unknown Object (File)
Jul 3 2024, 11:15 AM
Subscribers

Details

Summary
  • Add /* FALLTHROUGH */ comments for intentional fall throughs in getargs().
  • Use COPYRIGHT and SCCSID for id strings to quiet -Wunused-const-variable warnings from GCC.
  • While here, remove __FBSDID.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47644
Build 44531: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 29 2022, 10:47 PM
usr.bin/rs/rs.c
486

Maybe delete or change to #if 0 while here?

493

Another /* FALLTHROUGH */ here?

usr.bin/rs/rs.c
35

IMO we could just drop these instead, rs.c 8.1 (Berkeley) 6/6/93 in particular doesn't convey anything useful.

jhb marked 3 inline comments as done.

Review feedback.

This revision is now accepted and ready to land.Oct 5 2022, 6:02 PM
This revision was automatically updated to reflect the committed changes.