Share via


C28308

warning 28308: The format list argument position specified by the annotation is incorrect.

The format list argument position must be either a parameter name, or an integer offset that's in the parameter list, or zero.

The second parameter to IsFormatString2 (where) can be in one of two forms:

  • A parameter name, which is taken as the first argument to the format string.

  • An offset (n) relative to the format-string parameter.

In the second form, the first format-string parameter is the n-th argument after the format string. If n is zero, an ellipsis is specified as the parameter. Specifying an offset of zero without specifying the ellipsis as the first format-string parameter will cause an error.