home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
WGRPOPT.ZIP
/
WGRP.OPT
Wrap
Text File
|
1993-03-10
|
9KB
|
156 lines
USING THE /Wgrp DIAGNOSTIC OPTIONS
Use these options to examine your source code
for possible programming errors, weak
programming style, and other information
about the structure of your program. When
you specify "/Wall[+]", all suboptions are
turned on and all possible diagnostic
messages are reported. Because even a simple
program that contains no errors can produce
many informational messages, you may not want
to use "/Wall" very often. You can use the
suboptions alone or in combination to specify
the type of messages that you want the
compiler to report. Suboptions can be
separated by an optional "+" sign. To turn
off a suboption, you must place a "-" sign
after it. You can also combine the
"/W{0|1|2|3}" options with the /Wgrp options.
___
The following table lists the message groups
and the message numbers that each controls,
as well as the "/Kn" option that formerly
_
controlled each message. Messages generated
for C files begin with EDC0, while messages
for C++ files begin with EDC3.
+---------------------------------------------------------+
| Figure 1 (Page 1 of 5). /Wgrp Options |
+------+------+---------------------+---------------------+
| grp | /Kn | CONTROLS MESSAGES | MESSAGES |
| |OPTION| ABOUT | |
+------+------+---------------------+---------------------+
| "all"| "/Kf"| All diagnostics. | All message numbers |
| | | | listed in this |
| | | | table. |
+------+------+---------------------+---------------------+
| "cls"|(none)| Use of classes | EDC3110, EDC3253, |
| | | | EDC3266 |
+------+------+---------------------+---------------------+
| "cmp"|(none)| Possible | EDC3138, EDC3139, |
| | | redundancies in | EDC3140 |
| | | unsigned | |
| | | comparisons. | |
+------+------+---------------------+---------------------+
| "cnd"| "/Kb"| Possible | EDC0816, EDC0821, |
| | | redundancies or | EDC0822, EDC3107, |
| | | problems in | EDC3130 |
| | | conditional | |
| | | expressions. | |
+------+------+---------------------+---------------------+
| "cns"| "/Kb"| Operations | EDC0823, EDC0824, |
| | | involving | EDC0838, EDC0839, |
| | | constants. | EDC0865, EDC0866, |
| | | | EDC0867, EDC3131, |
| | | | EDC3219 |
+------+------+---------------------+---------------------+
| "cnv"| "/Kb"| Conversions. | EDC3313 |
+------+------+---------------------+---------------------+
| "cpy"|(none)| Problems generating | EDC3199, EDC3200 |
| | | copy constructors. | |
+------+------+---------------------+---------------------+
| "eff"| "/Kb"| Statements with no | EDC0811, EDC0812, |
| | | effect. | EDC0813, EDC0814, |
| | | | EDC0815, EDC3165, |
| | | | EDC3215 |
+------+------+---------------------+---------------------+
| "enu"| "/Ke"| Consistency of | EDC0830, EDC0831, |
| | | "enum" variables. | EDC3137 |
+------+------+---------------------+---------------------+
| "ext"| "/Kb"| Unused external | EDC0803, EDC0804, |
| | and | definitions. | EDC0810, EDC3127 |
| | "/Kx"| | |
+------+------+---------------------+---------------------+
| "gen"| "/Kb"| General | EDC0807, EDC0809, |
| | | diagnostics. | EDC0826, EDC0835, |
| | | | EDC0868, EDC0869, |
| | | | EDC3101 |
+------+------+---------------------+---------------------+
| "gnr"|(none)| Generation of | EDC3151 |
| | | temporary | |
| | | variables. | |
+------+------+---------------------+---------------------+
| "got"| "/Kg"| Usage of "goto" | EDC0832, EDC0837 |
| | | statements. | |
+------+------+---------------------+---------------------+
| "ini"| "/Ki"| Possible problems | EDC0861, EDC0862, |
| | | with | EDC0863, EDC0864 |
| | | initialization. | |
+------+------+---------------------+---------------------+
| "lan"|(none)| Effects of the | EDC3116 |
| | | language level. | |
+------+------+---------------------+---------------------+
| "obs"| "/Kb"| Features that are | EDC0827, EDC0828 |
| | | obsolete. | |
+------+------+---------------------+---------------------+
| "ord"| "/Kb"| Unspecified order | EDC0829 |
| | | of evaluation. | |
+------+------+---------------------+---------------------+
| "par"| "/Kp"| Unused parameters. | EDC0800, EDC3126 |
+------+------+---------------------+---------------------+
| "por"| "/Ko,| Nonportable | EDC0464, EDC0819, |
| | /Kb" | language | EDC0820, EDC3132, |
| | | constructs. | EDC3133, EDC3135, |
| | | | EDC3136, EDC3307 |
+------+------+---------------------+---------------------+
| "ppc"| "/Kc"| Possible problems | EDC0836, EDC0841, |
| | | with using the | EDC0842, EDC0843, |
| | | preprocessor. | EDC0844, EDC0845, |
| | | | EDC0846, EDC0847, |
| | | | EDC0848 |
+------+------+---------------------+---------------------+
| "ppt"| "/Kt"| Trace of | EDC0851, EDC0852, |
| | | preprocessor | EDC0853, EDC0854, |
| | | actions. | EDC0855, EDC0856, |
| | | | EDC0857, EDC0858, |
| | | | EDC0859, EDC0860, |
| | | | EDC0870 |
+------+------+---------------------+---------------------+
| "pro"| "/Kb"| Missing function | EDC0185 |
| | | prototypes. | |
+------+------+---------------------+---------------------+
| "rea"| "/Kb"| Code that cannot be | EDC0825, EDC3119 |
| | | reached. | |
+------+------+---------------------+---------------------+
| "ret"| "/Kb"| Consistency of | EDC0833, EDC0834, |
| | | "return" | EDC3128 |
| | | statements. | |
+------+------+---------------------+---------------------+
| "trd"| "/Ka"| Possible truncation | EDC0817, EDC0818, |
| | | or loss of data or | EDC3108, EDC3135, |
| | | precision. | EDC3136 |
+------+------+---------------------+---------------------+
| "tru"| "/Kr"| Variable names | EDC0244 |
| | | truncated by the | |
| | | compiler. | |
+------+------+---------------------+---------------------+
| "und"|(none)| Casting of pointers | EDC3098 |
| | | to or from an | |
| | | undefined class. | |
+------+------+---------------------+---------------------+
| "uni"| "/Ki"| Uninitialized | EDC0808 |
| | | variables. | |
+------+------+---------------------+---------------------+
| "use"| "/Kb,| Unused "auto" and | EDC0801, EDC0802, |
| | /Kx" | "static" variables. | EDC0805, EDC0806, |
| | | | EDC3002, EDC3099, |
| | | | EDC3100 |
+------+------+---------------------+---------------------+
| "vft"| (none| Generation of | EDC3280, EDC3281, |
| | | virtual function | EDC3282 |
| | | tables. | |
+------+------+---------------------+---------------------+