Page MenuHomeFreeBSD

sx: avoid gcc -Wunused-value
ClosedPublic

Authored by rlibby on Jul 5 2024, 2:08 AM.
Tags
None
Referenced Files
F147295435: D45875.id140739.diff
Mon, Mar 9, 6:31 PM
F147278268: D45875.id140559.diff
Mon, Mar 9, 3:42 PM
F147208627: D45875.id140559.diff
Mon, Mar 9, 3:26 AM
Unknown Object (File)
Tue, Mar 3, 4:16 PM
Unknown Object (File)
Sat, Feb 21, 3:35 AM
Unknown Object (File)
Tue, Feb 17, 4:12 AM
Unknown Object (File)
Fri, Feb 13, 1:06 AM
Unknown Object (File)
Wed, Feb 11, 3:04 PM
Subscribers
None

Diff Detail

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

Event Timeline

rlibby requested review of this revision.Jul 5 2024, 2:08 AM
rlibby created this revision.

Why didn't sx_lock() complain?

In D45875#1045918, @imp wrote:

Why didn't sx_lock() complain?

Oops. It did. I missed it. Will fix. Thanks.

imp: sx_xlock too

Also fixup whitespace while touching these lines.

Then what about sx_try_xlock()?

In D45875#1045923, @kib wrote:

Then what about sx_try_xlock()?

Don't we always test whether that succeeded or not. Otherwise why try??

Yeah, we should use the value from sx_try_lock, and we'd like to enforce that it's checked too I guess.

This revision is now accepted and ready to land.Jul 9 2024, 6:28 PM
This revision was automatically updated to reflect the committed changes.