Page MenuHomeFreeBSD

Fix error found by new clang operator precendence warning
ClosedPublic

Authored by arichardson on Nov 17 2019, 5:27 PM.

Details

Summary

error: operator '?:' has lower precedence than '|'; '|' will be evaluated first

I discovered this in CheriBSD after updating our fork of clang to the latest
upstream master.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

arichardson created this revision.Nov 17 2019, 5:27 PM
ian accepted this revision.Nov 17 2019, 6:00 PM
This revision is now accepted and ready to land.Nov 17 2019, 6:00 PM
This revision was automatically updated to reflect the committed changes.