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)
Fri, Jan 2, 3:06 PM
Unknown Object (File)
Sat, Dec 27, 5:34 PM
Unknown Object (File)
Dec 21 2025, 8:19 PM
Unknown Object (File)
Dec 20 2025, 11:37 PM
Unknown Object (File)
Dec 14 2025, 9:28 PM
Unknown Object (File)
Nov 27 2025, 1:10 PM
Unknown Object (File)
Nov 19 2025, 12:03 PM
Unknown Object (File)
Nov 17 2025, 8:59 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.