Page MenuHomeFreeBSD

vdevice.h: avoid gcc variably-modified warning
ClosedPublic

Authored by rlibby on Jun 29 2017, 9:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 2, 12:19 PM
Unknown Object (File)
Thu, Oct 2, 11:03 AM
Unknown Object (File)
Wed, Oct 1, 10:17 PM
Unknown Object (File)
Wed, Oct 1, 4:48 PM
Unknown Object (File)
Mon, Sep 22, 12:56 PM
Unknown Object (File)
Sep 1 2025, 12:54 AM
Unknown Object (File)
Aug 7 2025, 3:31 PM
Unknown Object (File)
Jul 19 2025, 10:15 PM

Details

Summary

gcc produces a "variably modified X at file scope" warning for structures that use these size definitions. I think the definitions are actually fine but can be rephrased with offsetof more cleanly anyway.

Looks like this was originally reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211540

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 5 2017, 5:12 PM
This revision was automatically updated to reflect the committed changes.