Changes between Version 5 and Version 6 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Sep 5, 2010, 11:44:52 AM (12 years ago)
Author:
Paul A. Bristow
Comment:

Add some info on analyser warning C6385

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v5 v6  
    238238||C4996||'putenv': The POSIX name for this item is deprecated (but NOT by POSIX!).||Suppress.||#  pragma warning(disable: 4996) // 'putenv' was declared deprecated.||
    239239||C4996||'  this item is deprecated.||Many similar messages suggest using secure versions. Unless you strongly believe that the 'secure' versions are useful, suppress. [http://www.open-std.org/JTC1/sc22/wg14/www/docs/n1160.pdf WG14 Austin Group concerns] may guide. See also _CRT_SECURE_NO_DEPRECATE and other defines above.||#  pragma warning(disable: 4996) // '' was declared deprecated.||
     240||C6385||invalid data: accessing <buffer name>, the readable size is <size1> bytes, but <size2> bytes may be read.||Code analyser False warning C6385 when a function result is used as an array index. See [https://connect.microsoft.com/VisualStudio/feedback/details/281033/] suggests this can be suppressed, unless a check on array bounds is wanted/necessary.||
    240241
    241242'''GCC'''