Page MenuHomeFreeBSD

fwcontrol: Disable -Wzero-length-bounds warnings.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:51 PM.
Tags
None
Referenced Files
F97347495: D37538.diff
Sat, Sep 28, 7:27 PM
Unknown Object (File)
Tue, Sep 24, 6:09 PM
Unknown Object (File)
Wed, Sep 18, 2:52 PM
Unknown Object (File)
Thu, Sep 5, 5:54 AM
Unknown Object (File)
Tue, Sep 3, 7:39 PM
Unknown Object (File)
Sun, Sep 1, 6:30 AM
Unknown Object (File)
Sun, Sep 1, 6:30 AM
Unknown Object (File)
Sun, Sep 1, 6:30 AM
Subscribers
None

Details

Summary

firewire.h includes zero length arrays in unions that trigger this
warning.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48539
Build 45425: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Nov 29 2022, 7:51 PM
jhb created this revision.

We likely should rework those, but firewire is on deck for retirement...

This revision is now accepted and ready to land.Nov 29 2022, 8:16 PM

Agree it doesn't make sense to spend effort on fixing firewire, it will just be retired in the future.

Agree it doesn't make sense to spend effort on fixing firewire, it will just be retired in the future.

The pattern also isn't easy to fix. I have slightly less kind words later in my patches when I get to the kernel where I have to disable this warning for the entire kernel due to the OFED and Mellanox drivers using zero length array members of structs as a horrible hack.