Page MenuHomeFreeBSD

netfront.c: avoid gcc variably-modified warning
ClosedPublic

Authored by rlibby on Jun 29 2017, 9:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 12:32 PM
Unknown Object (File)
Thu, Nov 7, 4:57 AM
Unknown Object (File)
Wed, Oct 30, 8:51 AM
Unknown Object (File)
Oct 20 2024, 10:41 PM
Unknown Object (File)
Oct 8 2024, 5:26 PM
Unknown Object (File)
Oct 2 2024, 3:54 PM
Unknown Object (File)
Sep 17 2024, 11:57 AM
Unknown Object (File)
Sep 14 2024, 10:45 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 the __CONST_RING_SIZE macro more cleanly anyway.

Diff Detail

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

Event Timeline

rlibby added subscribers: kmacy, gibbs.

Thanks, that's indeed better.

This revision is now accepted and ready to land.Jun 30 2017, 3:27 PM
This revision was automatically updated to reflect the committed changes.