Page MenuHomeFreeBSD

rs: Fix various harmless warnings.
ClosedPublic

Authored by jhb on Sep 29 2022, 10:47 PM.
Tags
None
Referenced Files
F107031323: D36830.id111250.diff
Thu, Jan 9, 5:59 AM
F107031271: D36830.id111492.diff
Thu, Jan 9, 5:58 AM
F107029328: D36830.diff
Thu, Jan 9, 5:14 AM
Unknown Object (File)
Dec 3 2024, 9:19 AM
Unknown Object (File)
Nov 16 2024, 10:17 AM
Unknown Object (File)
Nov 16 2024, 6:13 AM
Unknown Object (File)
Oct 19 2024, 8:53 AM
Unknown Object (File)
Oct 8 2024, 4:04 PM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

Maybe delete or change to #if 0 while here?

491–492

Another /* FALLTHROUGH */ here?

usr.bin/rs/rs.c
34

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.