For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
For the latest documentation on Visual Studio 2017, see C6518 on docs.microsoft.com. warning C6518: Invalid annotation: 'SAL_writableTo' property may not be specified as a precondition on buffers that are not writable: '_Param_(1)'
This warning indicates that a conflict exists between a
SAL_writableTo property value and a writable property. This ordinarily indicates that a writable property does not have write access to the parameter being annotated.
The following code generates this warning because the
_Out_ annotation compiles to include a
SAL_writableTo property, which does not allow write access:
To correct this warning, use the following code: