Changes between Version 2 and Version 3 of Guidelines/WarningsGuidelines
- Timestamp:
- Aug 29, 2010, 8:38:50 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Guidelines/WarningsGuidelines
v2 v3 224 224 ||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|| 225 225 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.|| 227 227 228 228 ||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.||