home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WGRPOPT.ZIP / WGRP.OPT
Text File  |  1993-03-10  |  9KB  |  156 lines

  1. USING THE /Wgrp DIAGNOSTIC OPTIONS
  2.  
  3.  Use these options to examine your source code
  4.  for possible programming errors, weak
  5.  programming style, and other information
  6.  about the structure of your program.  When
  7.  you specify "/Wall[+]", all suboptions are
  8.  turned on and all possible diagnostic
  9.  messages are reported.  Because even a simple
  10.  program that contains no errors can produce
  11.  many informational messages, you may not want
  12.  to use "/Wall" very often.  You can use the
  13.  suboptions alone or in combination to specify
  14.  the type of messages that you want the
  15.  compiler to report.  Suboptions can be
  16.  separated by an optional "+" sign.  To turn
  17.  off a suboption, you must place a "-" sign
  18.  after it.  You can also combine the
  19.  "/W{0|1|2|3}" options with the /Wgrp options.
  20.                                   ___
  21.  
  22.  The following table lists the message groups
  23.  and the message numbers that each controls,
  24.  as well as the "/Kn" option that formerly
  25.                                        _
  26.  controlled each message.  Messages generated
  27.  for C files begin with EDC0, while messages
  28.  for C++ files begin with EDC3.
  29.  
  30.  +---------------------------------------------------------+
  31.  | Figure 1 (Page 1 of 5). /Wgrp Options                   |
  32.  +------+------+---------------------+---------------------+
  33.  |  grp |  /Kn | CONTROLS MESSAGES   | MESSAGES            |
  34.  |      |OPTION| ABOUT               |                     |
  35.  +------+------+---------------------+---------------------+
  36.  | "all"| "/Kf"| All diagnostics.    | All message numbers |
  37.  |      |      |                     | listed in this      |
  38.  |      |      |                     | table.              |
  39.  +------+------+---------------------+---------------------+
  40.  | "cls"|(none)| Use of classes      | EDC3110, EDC3253,   |
  41.  |      |      |                     | EDC3266             |
  42.  +------+------+---------------------+---------------------+
  43.  | "cmp"|(none)| Possible            | EDC3138, EDC3139,   |
  44.  |      |      | redundancies in     | EDC3140             |
  45.  |      |      | unsigned            |                     |
  46.  |      |      | comparisons.        |                     |
  47.  +------+------+---------------------+---------------------+
  48.  | "cnd"| "/Kb"| Possible            | EDC0816, EDC0821,   |
  49.  |      |      | redundancies or     | EDC0822, EDC3107,   |
  50.  |      |      | problems in         | EDC3130             |
  51.  |      |      | conditional         |                     |
  52.  |      |      | expressions.        |                     |
  53.  +------+------+---------------------+---------------------+
  54.  | "cns"| "/Kb"| Operations          | EDC0823, EDC0824,   |
  55.  |      |      | involving           | EDC0838, EDC0839,   |
  56.  |      |      | constants.          | EDC0865, EDC0866,   |
  57.  |      |      |                     | EDC0867, EDC3131,   |
  58.  |      |      |                     | EDC3219             |
  59.  +------+------+---------------------+---------------------+
  60.  | "cnv"| "/Kb"| Conversions.        | EDC3313             |
  61.  +------+------+---------------------+---------------------+
  62.  | "cpy"|(none)| Problems generating | EDC3199, EDC3200    |
  63.  |      |      | copy constructors.  |                     |
  64.  +------+------+---------------------+---------------------+
  65.  | "eff"| "/Kb"| Statements with no  | EDC0811, EDC0812,   |
  66.  |      |      | effect.             | EDC0813, EDC0814,   |
  67.  |      |      |                     | EDC0815, EDC3165,   |
  68.  |      |      |                     | EDC3215             |
  69.  +------+------+---------------------+---------------------+
  70.  | "enu"| "/Ke"| Consistency of      | EDC0830, EDC0831,   |
  71.  |      |      | "enum" variables.   | EDC3137             |
  72.  +------+------+---------------------+---------------------+
  73.  | "ext"| "/Kb"| Unused external     | EDC0803, EDC0804,   |
  74.  |      |  and | definitions.        | EDC0810, EDC3127    |
  75.  |      | "/Kx"|                     |                     |
  76.  +------+------+---------------------+---------------------+
  77.  | "gen"| "/Kb"| General             | EDC0807, EDC0809,   |
  78.  |      |      | diagnostics.        | EDC0826, EDC0835,   |
  79.  |      |      |                     | EDC0868, EDC0869,   |
  80.  |      |      |                     | EDC3101             |
  81.  +------+------+---------------------+---------------------+
  82.  | "gnr"|(none)| Generation of       | EDC3151             |
  83.  |      |      | temporary           |                     |
  84.  |      |      | variables.          |                     |
  85.  +------+------+---------------------+---------------------+
  86.  | "got"| "/Kg"| Usage of "goto"     | EDC0832, EDC0837    |
  87.  |      |      | statements.         |                     |
  88.  +------+------+---------------------+---------------------+
  89.  | "ini"| "/Ki"| Possible problems   | EDC0861, EDC0862,   |
  90.  |      |      | with                | EDC0863, EDC0864    |
  91.  |      |      | initialization.     |                     |
  92.  +------+------+---------------------+---------------------+
  93.  | "lan"|(none)| Effects of the      | EDC3116             |
  94.  |      |      | language level.     |                     |
  95.  +------+------+---------------------+---------------------+
  96.  | "obs"| "/Kb"| Features that are   | EDC0827, EDC0828    |
  97.  |      |      | obsolete.           |                     |
  98.  +------+------+---------------------+---------------------+
  99.  | "ord"| "/Kb"| Unspecified order   | EDC0829             |
  100.  |      |      | of evaluation.      |                     |
  101.  +------+------+---------------------+---------------------+
  102.  | "par"| "/Kp"| Unused parameters.  | EDC0800, EDC3126    |
  103.  +------+------+---------------------+---------------------+
  104.  | "por"| "/Ko,| Nonportable         | EDC0464, EDC0819,   |
  105.  |      | /Kb" | language            | EDC0820, EDC3132,   |
  106.  |      |      | constructs.         | EDC3133, EDC3135,   |
  107.  |      |      |                     | EDC3136, EDC3307    |
  108.  +------+------+---------------------+---------------------+
  109.  | "ppc"| "/Kc"| Possible problems   | EDC0836, EDC0841,   |
  110.  |      |      | with using the      | EDC0842, EDC0843,   |
  111.  |      |      | preprocessor.       | EDC0844, EDC0845,   |
  112.  |      |      |                     | EDC0846, EDC0847,   |
  113.  |      |      |                     | EDC0848             |
  114.  +------+------+---------------------+---------------------+
  115.  | "ppt"| "/Kt"| Trace of            | EDC0851, EDC0852,   |
  116.  |      |      | preprocessor        | EDC0853, EDC0854,   |
  117.  |      |      | actions.            | EDC0855, EDC0856,   |
  118.  |      |      |                     | EDC0857, EDC0858,   |
  119.  |      |      |                     | EDC0859, EDC0860,   |
  120.  |      |      |                     | EDC0870             |
  121.  +------+------+---------------------+---------------------+
  122.  | "pro"| "/Kb"| Missing function    | EDC0185             |
  123.  |      |      | prototypes.         |                     |
  124.  +------+------+---------------------+---------------------+
  125.  | "rea"| "/Kb"| Code that cannot be | EDC0825, EDC3119    |
  126.  |      |      | reached.            |                     |
  127.  +------+------+---------------------+---------------------+
  128.  | "ret"| "/Kb"| Consistency of      | EDC0833, EDC0834,   |
  129.  |      |      | "return"            | EDC3128             |
  130.  |      |      | statements.         |                     |
  131.  +------+------+---------------------+---------------------+
  132.  | "trd"| "/Ka"| Possible truncation | EDC0817, EDC0818,   |
  133.  |      |      | or loss of data or  | EDC3108, EDC3135,   |
  134.  |      |      | precision.          | EDC3136             |
  135.  +------+------+---------------------+---------------------+
  136.  | "tru"| "/Kr"| Variable names      | EDC0244             |
  137.  |      |      | truncated by the    |                     |
  138.  |      |      | compiler.           |                     |
  139.  +------+------+---------------------+---------------------+
  140.  | "und"|(none)| Casting of pointers | EDC3098             |
  141.  |      |      | to or from an       |                     |
  142.  |      |      | undefined class.    |                     |
  143.  +------+------+---------------------+---------------------+
  144.  | "uni"| "/Ki"| Uninitialized       | EDC0808             |
  145.  |      |      | variables.          |                     |
  146.  +------+------+---------------------+---------------------+
  147.  | "use"| "/Kb,| Unused "auto" and   | EDC0801, EDC0802,   |
  148.  |      | /Kx" | "static" variables. | EDC0805, EDC0806,   |
  149.  |      |      |                     | EDC3002, EDC3099,   |
  150.  |      |      |                     | EDC3100             |
  151.  +------+------+---------------------+---------------------+
  152.  | "vft"| (none| Generation of       | EDC3280, EDC3281,   |
  153.  |      |      | virtual function    | EDC3282             |
  154.  |      |      | tables.             |                     |
  155.  +------+------+---------------------+---------------------+
  156.