Page MenuHomeFreeBSD

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

Authored by jhb on Nov 29 2022, 7:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 5:55 AM
Unknown Object (File)
Oct 3 2024, 12:47 PM
Unknown Object (File)
Sep 28 2024, 7:27 PM
Unknown Object (File)
Sep 24 2024, 6:09 PM
Unknown Object (File)
Sep 18 2024, 2:52 PM
Unknown Object (File)
Sep 5 2024, 5:54 AM
Unknown Object (File)
Sep 3 2024, 7:39 PM
Unknown Object (File)
Sep 1 2024, 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 Not Applicable
Unit
Tests Not Applicable

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.