HomeFreeBSD

rpcgen(1): Avoid unused variable warning on generated code.

Description

rpcgen(1): Avoid unused variable warning on generated code.

Avoid "unused variable 'i'" warnings in generated .c files by only
emitting the "int i;" for non-opaque arrays. Opaque arrays use
xdr_opaque() rather than iterating over the array.

Obtained from: OpenBSD (CVS rev 1.28)
MFC after: 1 week

Details

Provenance
pfgAuthored on Jan 11 2017, 11:05 PM
Parents
rGc83bcfbd2e03: readelf: add S390 relocation types
Branches
Unknown
Tags
Unknown

Event Timeline