Changes between Version 2 and Version 3 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Aug 29, 2010, 8:38:50 AM (12 years ago)
Author:
Paul A. Bristow
Comment:

Added detail about C4224 warning

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v2 v3  
    224224||C4189||local variable is initialized but not referenced||This probably indicates a redundant variable and assignment, so probably remove it. If you are sure it is required (or has negligible cost for some documentation benefit), suppress.||#  pragma warning(disable: 4189) //local variable is initialized but not referenced||
    225225
    226 ||C4224||nonstandard extension used : formal parameter 'arg' was previously defined as a type.||This will bite users who try to compile with Microsoft extensions disabled. So is most undesirable, but may be a major nuisance to change the names in code.However fixing is the Right Thing, but meanwhile suppressing may be helpful.||#  pragma warning(disable: 4224) // formal parameter 'arg' was previously defined as a type.||
     226||C4224||nonstandard extension used : formal parameter 'arg' was previously defined as a type.||This will bite users who try to compile with Microsoft extensions disabled. Wrong warning acknowledged by MS as a bug http://tinyurl.com/2blmq3l but won't be fixed. May be a major nuisance to change the names in the code but suppressing is fine.||#  pragma warning(disable: 4224) // formal parameter 'arg' was previously defined as a type.||
    227227
    228228||C4244|| Conversion: possible loss of data.||Fix, for example changing type or using static_cast is best, suppress with much caution.||# pragma warning(disable:4244) // Conversion: possible loss of data.||