Page MenuHomeFreeBSD

posixshmtest: Fix various warnings raised by GCC.
ClosedPublic

Authored by jhb on Sep 13 2021, 6:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 16, 11:03 AM
Unknown Object (File)
Mon, Apr 14, 4:05 AM
Unknown Object (File)
Sun, Apr 13, 1:14 PM
Unknown Object (File)
Thu, Apr 10, 3:31 AM
Unknown Object (File)
Wed, Apr 2, 1:56 AM
Unknown Object (File)
Mar 1 2025, 5:45 PM
Unknown Object (File)
Feb 22 2025, 2:17 PM
Unknown Object (File)
Jan 25 2025, 10:01 PM
Subscribers

Details

Summary
  • Remove unused format string arguments.
  • Remove a set but unused variable.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Sep 13 2021, 6:26 PM
kib added inline comments.
tests/sys/posixshm/posixshm_test.c
1108

Perhaps idea was to print out errno.

This revision is now accepted and ready to land.Sep 13 2021, 6:52 PM
tests/sys/posixshm/posixshm_test.c
1108

So I did that initially, but check_content_dealloc() doesn't always set errno when it fails, so I believe this was likely a copy-paste error.