Page MenuHomeFreeBSD

posixshmtest: Fix various warnings raised by GCC.
ClosedPublic

Authored by jhb on Sep 13 2021, 6:26 PM.
Tags
None
Referenced Files
F171298068: D31946.id.diff
Thu, Sep 10, 5:51 AM
Unknown Object (File)
Wed, Sep 9, 9:07 PM
Unknown Object (File)
Sun, Sep 6, 3:08 PM
Unknown Object (File)
Sun, Sep 6, 2:21 PM
Unknown Object (File)
Sun, Sep 6, 2:18 PM
Unknown Object (File)
Sun, Sep 6, 8:54 AM
Unknown Object (File)
Fri, Sep 4, 5:26 PM
Unknown Object (File)
Fri, Sep 4, 8:45 AM
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.