HomeFreeBSD

SC2145: Argument mixes string and array. Use * or separate argument.

Description

SC2145: Argument mixes string and array. Use * or separate argument.

The behavior when concatenating a string and array is rarely intended.
The preceeding string is prefixed to the first array element, while the
succeeding string is appended to the last one. The middle array elements
are unaffected.

For example, with the parameters foo,bar,baz, "--flag=$@" is equivalent
to the three arguments "--flag=foo" "bar" "baz".

PR: 227109
Submitted by: mat
Sponsored by: Absolight

Details

Provenance
matAuthored on
Parents
rP471263: graphics/leptonica: update to 1.76.0
Branches
Unknown
Tags
Unknown