Changes between Version 17 and Version 18 of Guidelines/MaintenanceGuidelines


Ignore:
Timestamp:
Nov 6, 2009, 4:30:01 PM (13 years ago)
Author:
Paul A. Bristow
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/MaintenanceGuidelines

    v17 v18  
    662662
    663663
    664 === Specific warnings and suggested actions. ===
     664=== Specific Warnings and Suggested Actions. ===
    665665
    666666''These are just few for starters and need more especially for gcc. Suggestions may be wrong!  Also need reordering in a table.''
     
    670670If you chose to suppress (rather than fix by recoding),
    671671localise the warnings as far as possible by using push'n'pop pragmas (see above).
    672 
    673 1  C4512 assignment operator could not be generated
    674 
    675 Suppress using push'n'pop for the module(s) causing the warning.
    676 //#  pragma warning(disable: 4512) // assignment operator could not be generated
    677 
    678 
    679 2  C4996 'putenv': The POSIX name for this item is deprecated.[[BR]]
    680 and many other messages about using secure versions.
    681 
    682 Unless you believe that the 'secure' versions are useful, suppress with
    683 #  pragma warning(disable: 4996) // '' was declared deprecated
    684 
    685 3  C4127 conditional expression is constant[[BR]]
    686 
    687 Very common and many believe unhelpful, but a few find it informative, so do not suppress globally.
    688 
    689 Even while(true) can trigger this!  Suppress.[[BR]]
    690 
    691  #  pragma warning(disable: 4127) // conditional expression is constant
    692 
    693 4 C4100 unreferenced formal parameter
    694 
    695 Either surround the parameter with C comments, for example: int */ my_variable */)
    696 or just delete if the variable name is uninformative.
     672||Warning #||Warning||Suggestions||Suppression||
     673
     674||1||C4512|| assignment operator could not be generated||Suppress using push'n'pop for the module(s) causing the warning.||//#  pragma warning(disable: 4512) // assignment operator could not be generated.||
     675
     676||2|| C4996||'putenv': The POSIX name for this item is deprecated.||Many other messages about using secure versions.Unless you believe that the 'secure' versions are useful, suppress.||#  pragma warning(disable: 4996) // '' was declared deprecated.
     677||
     678
     679||3||C4127|| conditional expression is constant||Very common and many believe unhelpful, but a few find it informative, so do not suppress globally.  Even while(true) can trigger this!  Suppress.|| #  pragma warning(disable: 4127) // conditional expression is constant.||
     680
     681||4||C4100|| unreferenced formal parameter||Either surround the parameter with C comments, for example: int */ my_variable */)or just delete if the variable name is uninformative.||||
    697682
    6986835 C4701 local variable may be used without having been initialized