www.viva64.com/en/w |
1 |
err |
Help: The documentation for all analyzer warnings is available here: https://www.viva64.com/en/w/. |
rltiles/tool/tile_colour.h |
31 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: r, g, b, a. |
rltiles/tool/tile.h |
9 |
warn |
V690 The 'tile' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class. |
rltiles/tool/tile.cc |
12 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_variations. |
rltiles/tool/tile_list_processor.cc |
56 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
rltiles/tool/tile_list_processor.cc |
105 |
err |
V663 Infinite loop is possible. The 'cin.eof()' condition is insufficient to break from the loop. Consider adding the 'cin.fail()' function call to the conditional expression. |
rltiles/tool/tile_list_processor.cc |
1109 |
err |
V773 The function was exited without releasing the 'part_min' pointer. A memory leak is possible. |
bitary.h |
15 |
warn |
V690 The 'bit_vector' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class. |
tags.h |
136 |
err |
V702 Classes should always be derived from std::exception (and alike) as 'public' (no keyword was specified, so compiler defaults it to 'private'). |
mgen-data.h |
173 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
stringutil.h |
99 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
viewgeom.h |
15 |
warn |
V690 The 'crawl_view_buffer' class implements the '=' operator, but lacks a copy constructor. It is dangerous to use such a class. |
abyss.cc |
458 |
warn |
V768 The variable 'which_feat' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
abyss.cc |
1342 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
abyss.cc |
1798 |
warn |
V522 There might be dereferencing of a potential null pointer 'cmark'. |
tags.h |
47 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _pbuf. |
externs.h |
334 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: source. |
externs.h |
374 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: num. |
tiles.h |
25 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: r, g, b, a. |
geom2d.h |
60 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: val. |
geom2d.h |
74 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: offset, dist. |
beam.h |
49 |
warn |
V730 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: tile_beam. |
kills.h |
25 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: monnum, modifier. |
kills.h |
85 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: exp. |
mon-info.h |
238 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: i_ghost. |
god-companions.h |
20 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: timestamp. |
mon-transit.h |
19 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: transit_start_time. |
cio.h |
351 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: key. |
notes.h |
68 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: type, first, second. |
menu.h |
1073 |
warn |
V703 It is odd that the 'm_old_bg_colour' field in derived class 'BlackWhiteHighlighter' overwrites field in base class 'BoxMenuHighlighter'. Check lines: menu.h:1073, menu.h:1055. |
ability.cc |
1322 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
ability.cc |
1348 |
warn |
V768 The expression 'you.undead_state()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
ability.cc |
3165 |
warn |
V506 Pointer to local variable 'numbers' is stored outside the scope of this variable. Such a pointer will become invalid. |
ability.cc |
3202 |
warn |
V506 Pointer to local variable 'numbers' is stored outside the scope of this variable. Such a pointer will become invalid. |
ability.cc |
3402 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
ability.cc |
3426 |
err |
V654 The condition 'k >= 0' of loop is always true. |
ability.cc |
3426 |
err |
V621 Consider inspecting the 'for' operator. It's possible that the loop will be executed incorrectly or won't be executed at all. |
ui.h |
80 |
warn |
V730 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: m_region, cached_sr, cached_sr_pw. |
ui.h |
344 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: hl_line. |
ui.h |
391 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_tw, m_th. |
ui.h |
472 |
warn |
V730 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: size, offset, sr. |
acquire.cc |
1303 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
actor.cc |
388 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
arena.cc |
1090 |
err |
V564 The '&' operator is applied to bool type value. You've probably forgotten to include parentheses or intended to use the '&&' operator. |
arena.cc |
1090 |
warn |
V560 A part of conditional expression is always true: !(mons_char(type) &!127). |
arena.cc |
1117 |
err |
V564 The '&' operator is applied to bool type value. You've probably forgotten to include parentheses or intended to use the '&&' operator. |
arena.cc |
1117 |
warn |
V560 A part of conditional expression is always true: !(mons_char(mg.cls) &!127). |
arena.cc |
1400 |
err |
V523 The 'then' statement is equivalent to the subsequent code fragment. |
art-func.h |
950 |
err |
V501 There are identical sub-expressions 'x_chance_in_y(evoc, 27 * 27)' to the left and to the right of the '||' operator. |
artefact.cc |
896 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
artefact.cc |
1651 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
nearby-danger.h |
44 |
warn |
V690 The 'position_node' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class. |
attack.cc |
199 |
err |
V595 The 'weapon' pointer was utilized before it was verified against nullptr. Check lines: 199, 204. |
attack.cc |
957 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
attack.cc |
1543 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
attack.cc |
52 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: attk_type, attk_flavour, attk_damage. |
fineff.h |
292 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: damage. |
nearby-danger.h |
149 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: test. |
beam.cc |
980 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
1239 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
1981 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
2023 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
2172 |
warn |
V519 The 'child.origin_spell' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 2167, 2172. |
beam.cc |
2608 |
warn |
V547 Expression 'agent()' is always true. |
beam.cc |
2805 |
warn |
V519 The 'monst' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 2804, 2805. |
beam.cc |
2996 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
3003 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
3181 |
warn |
V768 The variable 'origin_spell' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
beam.cc |
3207 |
warn |
V547 Expression '!penet' is always true. |
beam.cc |
3893 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
4074 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
4399 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
4834 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
beam.cc |
6023 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
butcher.cc |
208 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
butcher.cc |
405 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
chardump.cc |
792 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
chardump.cc |
1147 |
err |
V610 Undefined behavior. Check the shift operator '<<'. The left operand is negative ('auxtype' = [-32768..32767]). |
cloud.cc |
393 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
cloud.cc |
775 |
warn |
V1016 Expression 'ctype >= CLOUD_NONE' is always true. |
cloud.cc |
1770 |
warn |
V522 There might be dereferencing of a potential null pointer 'mark'. |
clua.cc |
484 |
warn |
V779 Unreachable code detected. It is possible that an error is present. |
clua.cc |
850 |
warn |
V1004 The 'vm' pointer was used unsafely after it was verified against nullptr. Check lines: 848, 850. |
clua.cc |
1142 |
warn |
V547 Expression 'lua' is always true. |
coordit.cc |
277 |
warn |
V768 The variable 'los' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
coordit.cc |
279 |
warn |
V768 The variable 'los' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
coordit.cc |
284 |
warn |
V768 The variable 'los' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
coordit.cc |
286 |
warn |
V768 The variable 'los' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
dbg-asrt.cc |
208 |
warn |
V560 A part of conditional expression is always true: sk >= 0. |
dbg-asrt.cc |
210 |
warn |
V560 A part of conditional expression is always true: sk >= 0. |
dbg-asrt.cc |
427 |
warn |
V1016 Expression 'type < MAT_FEATURE' is always false. |
dbg-asrt.cc |
509 |
warn |
V522 There might be dereferencing of a potential null pointer 'lua_marker'. |
dbg-scan.cc |
136 |
err |
V510 The 'mprf' function is not expected to receive class-type variable as fourth actual argument. |
dbg-scan.cc |
499 |
warn |
V1004 The 'h' pointer was used unsafely after it was verified against nullptr. Check lines: 494, 499. |
dbg-scan.cc |
676 |
warn |
V768 The variable 'portal' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
dbg-scan.cc |
683 |
warn |
V768 The variable 'exit' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
decks.cc |
421 |
warn |
V768 The expression 'origin_as_god_gift(deck)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
decks.cc |
515 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
decks.cc |
533 |
warn |
V656 Variables 'num_cards', 'num_flags' are initialized through the call to the same function. It's probably an error or un-optimized code. Consider inspecting the 'cards.size()' expression. Check lines: 532, 533. |
delay.cc |
836 |
warn |
V547 Expression 'm' is always true. |
describe.cc |
654 |
warn |
V1016 Expression 'trap >= 0' is always true. |
describe.cc |
3170 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
describe-god.cc |
285 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
describe-god.cc |
920 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
describe-god.cc |
1265 |
warn |
V560 A part of conditional expression is always true: step == JOIN. |
describe-spells.cc |
102 |
warn |
V786 It is odd that value 'type = MON_SPELL_WIZARD' is assigned to the 'is_spell' variable. The value range of 'is_spell' variable: [0, 1]. |
dgn-labyrinth.cc |
345 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'step < 2 || step < 12 && coinflip()' expression. |
dgn-overview.cc |
654 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dgn-overview.cc |
826 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dgn-overview.cc |
852 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dgn-proclayouts.cc |
119 |
warn |
V636 The 'offset / 3' expression was implicitly cast from 'int' type to 'double' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part. An example: double A = (double)(X) / Y;. |
dgn-proclayouts.cc |
442 |
warn |
V547 Expression 'enable_forest' is always true. |
dgn-shoals.cc |
128 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dgn-shoals.cc |
326 |
warn |
V547 Expression 'npoints < size_limit' is always true. |
dgn-shoals.cc |
376 |
err |
V789 Iterators for the 'visit' container, used in the range-based for loop, become invalid upon the call of the 'push_back' function. |
dgn-shoals.cc |
575 |
err |
V789 Iterators for the 'wind_points' container, used in the range-based for loop, become invalid upon the call of the 'push_back' function. |
directn.cc |
900 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
directn.cc |
1113 |
err |
V547 Expression 'aff == AFF_MULTIPLE' is always true. |
directn.cc |
1325 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
directn.cc |
3287 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
directn.cc |
3316 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
directn.cc |
503 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: valid_shadow_step. |
domino.h |
206 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: colours_. |
domino.h |
253 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: colours_. |
domino.h |
298 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: colours_. |
dungeon.cc |
938 |
warn |
V768 The variable 'fill' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
dungeon.cc |
2259 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dungeon.cc |
3678 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dungeon.cc |
5914 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
dungeon.cc |
6066 |
warn |
V522 There might be dereferencing of a potential null pointer. |
dungeon.cc |
6681 |
warn |
V547 Expression '!stairs_unique' is always false. |
dungeon.cc |
2778 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: label. |
evoke.cc |
1098 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
evoke.cc |
1349 |
warn |
V768 The expression is of enum type. It is odd that it is used as an expression of a Boolean-type. |
evoke.cc |
1404 |
warn |
V768 The expression 'player_will_anger_monster(* victim)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
exclude.cc |
550 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
feature.cc |
216 |
warn |
V1016 Expression 'feat >= 0' is always true. |
fight.cc |
810 |
warn |
V560 A part of conditional expression is always true: min_delay < 10. |
fight.cc |
1044 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'victims.empty() || penancen &&!penance' expression. |
files.cc |
506 |
err |
V614 Uninitialized variable 'found' used. |
files.cc |
1199 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
files.cc |
1491 |
warn |
V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 1487, 1491. |
files.cc |
2321 |
warn |
V519 The 'crawl_state.default_startup_name' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 2313, 2321. |
files.cc |
2627 |
warn |
V768 The variable 'ReleaseType' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
fineff.cc |
173 |
warn |
V522 There might be dereferencing of a potential null pointer 'ssdfe'. |
food.cc |
337 |
warn |
V602 Consider inspecting the '(you.hunger_state > HS_SATIATED)' expression. '>' possibly should be replaced with '>>'. |
food.cc |
477 |
warn |
V768 The expression 'you.undead_state()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
ghost.cc |
770 |
warn |
V1016 Expression 'ghost.job < JOB_FIGHTER' is always false. |
ghost.cc |
776 |
warn |
V1016 Expression 'ghost.religion < GOD_NO_GOD' is always false. |
god-abil.cc |
1909 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
god-abil.cc |
3533 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
god-abil.cc |
4958 |
err |
V654 The condition 'j < victims.size()' of loop is always false. |
god-abil.cc |
4958 |
err |
V621 Consider inspecting the 'for' operator. It's possible that the loop will be executed incorrectly or won't be executed at all. |
skill-menu.h |
71 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_sk, m_name, m_level, m_progress, m_aptitude. |
god-blessing.cc |
807 |
warn |
V560 A part of conditional expression is always true: blessing.empty(). |
god-wrath.cc |
1668 |
warn |
V519 The 'mon' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1667, 1668. |
hiscores.cc |
312 |
warn |
V519 The 'tmp' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 311, 312. |
hiscores.cc |
1221 |
warn |
V668 There is no sense in testing the 'fields' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. |
hiscores.cc |
2002 |
err |
V655 The strings were concatenated but are not utilized. Consider inspecting the expression. |
hiscores.cc |
2251 |
warn |
V768 The expression 'you.undead_state()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
initfile.cc |
577 |
warn |
V1016 Expression 'wpn_type >= 0' is always true. |
initfile.cc |
3052 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
initfile.cc |
3063 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
initfile.cc |
1759 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: macro_meta_entry, evil_colour. |
invent.cc |
582 |
warn |
V522 There might be dereferencing of a potential null pointer 'item'. |
invent.cc |
883 |
warn |
V522 There might be dereferencing of a potential null pointer 'inv'. |
invent.cc |
1083 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
invent.cc |
1552 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
invent.cc |
2040 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-use.cc |
287 |
warn |
V522 There might be dereferencing of a potential null pointer 'ie'. |
item-use.cc |
456 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-use.cc |
1431 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
111 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
859 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
1290 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
1383 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
1719 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
1826 |
warn |
V560 A part of conditional expression is always false: pqual < 0. |
item-name.cc |
1829 |
warn |
V560 A part of conditional expression is always false: pcolour < 0. |
item-name.cc |
1829 |
warn |
V560 A part of conditional expression is always false: pcolour >= PDC_NCOLOURS. |
item-name.cc |
2074 |
warn |
V560 A part of conditional expression is always true: !basename. |
item-name.cc |
2116 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
2332 |
warn |
V522 Dereferencing of the null pointer 'inv' might take place. The potential null pointer is passed into 'KnownEntry' function. Inspect the first argument. Check lines: 2332, 2451. |
item-name.cc |
2837 |
warn |
V728 An excessive check can be simplified. The '||' operator is surrounded by opposite expressions 'name.length() <= 2' and 'name.length() > 2'. |
item-name.cc |
2865 |
warn |
V560 A part of conditional expression is always false: name.empty(). |
item-name.cc |
2869 |
warn |
V560 A part of conditional expression is always true: !name.empty(). |
item-name.cc |
3246 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
3308 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
3393 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
3396 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
3530 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
3528 |
warn |
V768 The expression 'you.undead_state(temp)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
item-name.cc |
3578 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-name.cc |
3576 |
warn |
V768 The expression 'you.undead_state(temp)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
item-name.cc |
3589 |
warn |
V768 The expression 'you.undead_state(temp)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
item-prop.cc |
1999 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
item-prop.cc |
2045 |
warn |
V1016 Expression 'ammo < 0' is always false. |
items.cc |
216 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
items.cc |
1280 |
warn |
V560 A part of conditional expression is always true: iorig > GOD_NO_GOD. |
items.cc |
2208 |
warn |
V1001 The 'quant_got' variable is assigned but is not used by the end of the function. |
items.cc |
2818 |
warn |
V547 Expression '!old_inscription.empty()' is always false. |
items.cc |
3292 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
items.cc |
3357 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
items.cc |
4518 |
warn |
V547 Expression 'create_for_real' is always true. |
items.cc |
4634 |
warn |
V547 Expression '!item.sub_type' is always true. |
json.cc |
83 |
warn |
V701 realloc() possible leak: when realloc() fails in allocating memory, original pointer 'sb->start' is lost. Consider assigning realloc() to a temporary pointer. |
json.cc |
1243 |
warn |
V779 Unreachable code detected. It is possible that an error is present. |
kills.cc |
50 |
warn |
V1016 Expression 'kc >= KC_YOU' is always true. |
l-crawl.cc |
220 |
warn |
V601 The bool type is implicitly cast to the double type. Inspect the second argument. |
l-dgn.cc |
1260 |
err |
V590 Consider inspecting the 'kc == KC_NCATEGORIES || kc != KC_OTHER' expression. The expression is excessive or contains a misprint. |
l-dgnbld.cc |
816 |
warn |
V764 Possible incorrect order of arguments passed to '_calculate_join_the_dots_path' function: 'to' and 'from'. |
l-dgngrd.cc |
49 |
warn |
V768 The variable 'f' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
l-dgngrd.cc |
108 |
warn |
V768 The variable 'feat' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
l-item.cc |
638 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
l-item.cc |
682 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
l-item.cc |
1211 |
warn |
V560 A part of conditional expression is always true: q != - 1. |
l-los.cc |
59 |
warn |
V601 The bool type is implicitly cast to the double type. Inspect the second argument. |
l-moninf.cc |
254 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
l-mons.cc |
530 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
l-mons.cc |
560 |
warn |
V1016 Expression '0 <= beh' is always true. |
macro.cc |
1344 |
warn |
V547 Expression 'cmd == CMD_NO_CMD' is always false. |
macro.cc |
1437 |
warn |
V557 Array overrun is possible. The value of 'context' index could reach 5. |
macro.cc |
1438 |
warn |
V557 Array overrun is possible. The value of 'context' index could reach 5. |
makeitem.cc |
1815 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
makeitem.cc |
1876 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mapdef.cc |
199 |
warn |
V794 The assignment operator should be protected from the case of 'this == &place'. |
mapdef.cc |
404 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mapdef.cc |
1679 |
warn |
V547 Expression '!overlay' is always false. |
mapdef.cc |
1684 |
warn |
V547 Expression '!key' is always false. |
mapdef.cc |
1699 |
warn |
V547 Expression '!overlay' is always false. |
mapdef.cc |
1704 |
warn |
V547 Expression '!key' is always false. |
mapdef.cc |
5834 |
err |
V629 Consider inspecting the '1 << i' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. |
mapdef.cc |
432 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: next_keyspec_idx. |
mapdef.cc |
439 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: next_keyspec_idx. |
mapdef.cc |
2167 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: original. |
mapmark.cc |
1316 |
warn |
V522 There might be dereferencing of a potential null pointer 'posm'. |
maps.cc |
245 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'must_rot || can_rot && coinflip()' expression. |
maps.cc |
272 |
warn |
V560 A part of conditional expression is always true: exact_fit. |
melee-attack.cc |
101 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
melee-attack.cc |
223 |
err |
V595 The 'defender' pointer was utilized before it was verified against nullptr. Check lines: 223, 228. |
melee-attack.cc |
867 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
melee-attack.cc |
1797 |
warn |
V768 The expression 'god_hates_item_handling(* weapon)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
melee-attack.cc |
2003 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'dam <= 0 || dam < 4 && coinflip()' expression. |
melee-attack.cc |
2284 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
melee-attack.cc |
3297 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
melee-attack.cc |
3421 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
melee-attack.cc |
3445 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
menu.cc |
2280 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
menu.cc |
4729 |
warn |
V547 Expression '!m_visible' is always false. |
menu.cc |
4729 |
warn |
V649 There are two 'if' statements with identical conditional expressions. The first 'if' statement contains function return. This means that the second 'if' statement is senseless. Check lines: 4726, 4729. |
menu.cc |
3522 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_visible. |
menu.cc |
4693 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_old_bg_colour. |
menu.cc |
4778 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_old_bg_colour, m_old_fg_colour. |
menu.cc |
71 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_height. |
message-stream.cc |
110 |
warn |
V522 There might be dereferencing of a potential null pointer 'ps'. |
message-stream.cc |
117 |
warn |
V522 There might be dereferencing of a potential null pointer 'ps'. |
message-stream.cc |
52 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: internal_buf. |
message.cc |
168 |
warn |
V560 A part of conditional expression is always true: Options.msg_condense_repeats. |
message.cc |
706 |
warn |
V618 It's dangerous to call the 'cprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str); |
message.cc |
1123 |
warn |
V522 There might be dereferencing of a potential null pointer 'heapbuf'. |
message.cc |
1567 |
warn |
V560 A part of conditional expression is always true: size > 0. |
mon-act.cc |
138 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
598 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
621 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
638 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
656 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
667 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
1172 |
warn |
V547 Expression '!niceWand' is always true. |
mon-act.cc |
1400 |
warn |
V678 An object is used as an argument to its own method. Consider checking the first actual argument of the 'banish' function. |
mon-act.cc |
1652 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-act.cc |
1836 |
err |
V583 The '?:' operator, regardless of its conditional expression, always returns one and the same value. |
mon-act.cc |
2611 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-behv.cc |
373 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-behv.cc |
488 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-behv.cc |
598 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-behv.cc |
522 |
err |
V595 The 'afoe' pointer was utilized before it was verified against nullptr. Check lines: 522, 528. |
mon-behv.cc |
938 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-behv.cc |
1368 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
719 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
1280 |
warn |
V519 The 'beam.glyph' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1254, 1280. |
mon-cast.cc |
1281 |
warn |
V519 The 'beam.thrower' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1256, 1281. |
mon-cast.cc |
1976 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
2121 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
2202 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
2310 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
3862 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
4400 |
warn |
V602 Consider inspecting the '(spell_hd > 15)' expression. '>' possibly should be replaced with '>>'. |
mon-cast.cc |
4653 |
warn |
V560 A part of conditional expression is always true: !already_mesmerised. |
mon-cast.cc |
7622 |
warn |
V602 Consider inspecting the '(mon.spell_hd(SPELL_AWAKEN_EARTH) > 15)' expression. '>' possibly should be replaced with '>>'. |
mon-cast.cc |
7706 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
7822 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
7882 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
7953 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
7964 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
8050 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-cast.cc |
8053 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-death.cc |
549 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-death.cc |
962 |
warn |
V522 There might be dereferencing of a potential null pointer 'marker'. |
mon-death.cc |
1140 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-death.cc |
2295 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-death.cc |
2355 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-death.cc |
2433 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-death.cc |
3193 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-ench.cc |
2097 |
warn |
V1016 Expression 'ench > NUM_ENCHANTMENTS' is always false. |
mon-gear.cc |
1251 |
warn |
V560 A part of conditional expression is always false: !floor_tile.empty(). |
mon-gear.cc |
2039 |
warn |
V796 It is possible that 'break' statement is missing in switch statement. |
mon-movetarget.cc |
929 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-pathfind.cc |
193 |
warn |
V560 A part of conditional expression is always false: (idir = 0). |
mon-pathfind.cc |
68 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: traverse_in_sight. |
mon-place.cc |
103 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
249 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
288 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
365 |
warn |
V768 The expression 'player_will_anger_monster(mt)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
mon-place.cc |
439 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
581 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
2446 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
2456 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
2466 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
2476 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-place.cc |
2835 |
warn |
V768 The variable 'why' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
mon-place.cc |
2888 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-poly.cc |
135 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-poly.cc |
179 |
warn |
V560 A part of conditional expression is always true: power == PPT_LESS. |
mon-poly.cc |
182 |
warn |
V560 A part of conditional expression is always true: power == PPT_MORE. |
mon-poly.cc |
295 |
warn |
V768 The expression 'player_will_anger_monster(real_targetc)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
mon-poly.cc |
473 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-poly.cc |
583 |
warn |
V560 A part of conditional expression is always true: x >= 3. |
mon-poly.cc |
585 |
warn |
V560 A part of conditional expression is always true: x >= 5. |
mon-project.cc |
253 |
err |
V595 The 'caster' pointer was utilized before it was verified against nullptr. Check lines: 253, 254. |
mon-speak.cc |
418 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-speak.cc |
602 |
warn |
V560 A part of conditional expression is always true: msg.empty(). |
mon-tentacle.cc |
315 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: target_positions, connection_constraints, base_monster, max_string_distance. |
mon-tentacle.cc |
427 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: connection_constraints, base_monster. |
mon-transit.cc |
225 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: transit_start_time. |
mon-data.h |
6607 |
err |
V501 There are identical sub-expressions 'M_SPEAKS' to the left and to the right of the ' |
mon-data.h |
6607 |
warn |
V578 An odd bitwise operation detected. Consider verifying it. |
mon-util.cc |
178 |
warn |
V547 Expression 'valid_mons.empty()' is always false. |
mon-util.cc |
205 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
378 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
1115 |
err |
V595 The 'item' pointer was utilized before it was verified against nullptr. Check lines: 1115, 1129. |
mon-util.cc |
1194 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
1398 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
1496 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
3217 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
3919 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
mon-util.cc |
4686 |
warn |
V560 A part of conditional expression is always false: s_type < 0. |
monster.cc |
267 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
676 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
743 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
1197 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
1427 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
1598 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
1920 |
warn |
V560 A part of conditional expression is always true: !force. |
monster.cc |
1955 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
2390 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
2989 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
3941 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
4919 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
5027 |
warn |
V1019 Compound assignment expression 'amount /= 2' is used inside condition. |
monster.cc |
6254 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
6592 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
monster.cc |
71 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: ench_countdown, summoner, damage_friendly, damage_total. |
mutation.cc |
266 |
warn |
V1016 Expression 'mut >= 0' is always true. |
mutation.cc |
545 |
err |
V547 Expression 'you.mutation[mut] >= 0' is always true. Unsigned type value is always >= 0. |
mutation.cc |
546 |
err |
V547 Expression 'you.innate_mutation[mut] >= 0' is always true. Unsigned type value is always >= 0. |
mutation.cc |
547 |
err |
V547 Expression 'you.temp_mutation[mut] >= 0' is always true. Unsigned type value is always >= 0. |
mutation.cc |
1966 |
warn |
V768 The variable 'mutat' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
mutation.cc |
2235 |
warn |
V560 A part of conditional expression is always true: result.empty(). |
nearby-danger.cc |
140 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
nearby-danger.cc |
393 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
newgame.cc |
356 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'spfirst ||!jobfirst && coinflip()' expression. |
newgame.cc |
408 |
warn |
V768 The expression 'job_allowed(ng.species, ng.job)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
newgame.cc |
727 |
warn |
V768 The expression 'job_allowed(ng.species, ng.job)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
newgame.cc |
2414 |
err |
V562 It's odd to compare a bool type value with a value of 4. |
newgame.cc |
2414 |
warn |
V560 A part of conditional expression is always false. |
notes.cc |
75 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
notes.cc |
394 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
ouch.cc |
434 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
output.cc |
813 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
output.cc |
1219 |
warn |
V560 A part of conditional expression is always true: !small_layout. |
output.cc |
1221 |
warn |
V560 A part of conditional expression is always true: !small_layout. |
output.cc |
1223 |
warn |
V560 A part of conditional expression is always true: !small_layout. |
output.cc |
1400 |
warn |
V560 A part of conditional expression is always false: you.wield_change. |
output.cc |
1772 |
warn |
V560 A part of conditional expression is always true: i_print >= skip_lines. |
package.cc |
626 |
warn |
V779 Unreachable code detected. It is possible that an error is present. |
package.cc |
826 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: off, z_buffer. |
package.cc |
834 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: off, z_buffer. |
pattern.cc |
73 |
warn |
V668 There is no sense in testing the 're' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. |
pattern.cc |
141 |
err |
V790 It is odd that the assignment operator takes an object by a non-constant reference and returns this object. |
perlin.cc |
441 |
warn |
V636 The '1 / divisor' expression was implicitly cast from 'int' type to 'double' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part. An example: double A = (double)(X) / Y;. |
playable.cc |
60 |
warn |
V768 The expression is of enum type. It is odd that it is used as an expression of a Boolean-type. |
player-act.cc |
264 |
warn |
V560 A part of conditional expression is always true: weap. |
player-act.cc |
318 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player-reacts.cc |
634 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player-reacts.cc |
843 |
warn |
V560 A part of conditional expression is always true: !sanguine_armour_is_valid. |
player.cc |
523 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
774 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
1585 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
1618 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
1930 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
4342 |
warn |
V768 The expression 'you.undead_state()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
player.cc |
4342 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
4837 |
warn |
V560 A part of conditional expression is always true: !quiet. |
player.cc |
6093 |
warn |
V768 The expression 'undead_state(temp)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
player.cc |
6122 |
warn |
V768 The expression 'undead_state()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
player.cc |
6191 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
6210 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
6269 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
player.cc |
6380 |
warn |
V547 Expression 'found_nonartefact' is always false. |
player.cc |
7661 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
potion.cc |
96 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
prompt.cc |
136 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
prompt.cc |
248 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
prompt.cc |
1 |
err |
V002 Some diagnostic messages may contain incorrect line number in this file. |
randbook.cc |
489 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'level <= 3 || level == 4 && coinflip()' expression. |
randbook.cc |
933 |
warn |
V560 A part of conditional expression is always true: !god_gift. |
ranged-attack.cc |
138 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
ranged-attack.cc |
332 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
ranged-attack.cc |
491 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
946 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
953 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
1152 |
warn |
V547 Expression 'gifts <= 12' is always true. |
religion.cc |
1255 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
1343 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
1487 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
1535 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
1997 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
2321 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
2356 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
3608 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
religion.cc |
4637 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
scroller.cc |
99 |
warn |
V519 The 'more' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 98, 99. |
shopping.cc |
783 |
warn |
V636 The 'spells.size() / 6' expression was implicitly cast from 'size_t' type to 'double' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part. An example: double A = (double)(X) / Y;. |
shopping.cc |
1268 |
warn |
V522 There might be dereferencing of a potential null pointer 'dynamic_cast< ShopEntry * > (a)'. |
shopping.cc |
1269 |
warn |
V522 There might be dereferencing of a potential null pointer 'dynamic_cast< ShopEntry * > (b)'. |
shopping.cc |
1277 |
warn |
V522 There might be dereferencing of a potential null pointer 'dynamic_cast< ShopEntry * > (a)'. |
shopping.cc |
1278 |
warn |
V522 There might be dereferencing of a potential null pointer 'dynamic_cast< ShopEntry * > (b)'. |
shopping.cc |
1285 |
warn |
V522 There might be dereferencing of a potential null pointer 'dynamic_cast< ShopEntry * > (a)'. |
shopping.cc |
1286 |
warn |
V522 There might be dereferencing of a potential null pointer 'dynamic_cast< ShopEntry * > (b)'. |
shopping.cc |
1358 |
warn |
V522 There might be dereferencing of a potential null pointer. |
shopping.cc |
1382 |
warn |
V522 There might be dereferencing of a potential null pointer 'entry'. |
shopping.cc |
1647 |
warn |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: list, min_unbuyable_cost, min_unbuyable_idx, max_buyable_cost, max_buyable_idx. |
showsymb.cc |
306 |
warn |
V768 The variable 'feat' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
showsymb.cc |
321 |
warn |
V768 The expression 'cell.feat()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
skill-menu.cc |
310 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
skill-menu.cc |
1185 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
skill-menu.cc |
1879 |
warn |
V796 It is possible that 'break' statement is missing in switch statement. |
skill-menu.cc |
552 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_state. |
skill-menu.cc |
61 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_sk. |
skills.cc |
302 |
warn |
V560 A part of conditional expression is always true: n > 0. |
skills.cc |
314 |
warn |
V560 A part of conditional expression is always true: n > 0. |
species.cc |
448 |
err |
V547 Expression 'you.mutation[i] >= 0' is always true. Unsigned type value is always >= 0. |
spl-cast.cc |
220 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-cast.cc |
238 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-cast.cc |
1500 |
warn |
V547 Expression '!allow_fail' is always false. |
spl-damage.cc |
624 |
err |
V595 The 'mons' pointer was utilized before it was verified against nullptr. Check lines: 624, 652. |
spl-goditem.cc |
623 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-goditem.cc |
702 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-miscast.cc |
276 |
err |
V501 There are identical sub-expressions 'random2(40) > severity' to the left and to the right of the '&&' operator. |
spl-summoning.cc |
277 |
warn |
V768 The expression 'player_will_anger_monster(type)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-summoning.cc |
370 |
warn |
V768 The expression 'player_will_anger_monster(mon)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-summoning.cc |
867 |
warn |
V768 The variable 'why' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
spl-summoning.cc |
1194 |
warn |
V768 The expression 'player_will_anger_monster(* mons)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-summoning.cc |
1236 |
warn |
V768 The expression 'player_will_anger_monster(* * mi)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-tornado.cc |
354 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-util.cc |
1140 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-util.cc |
1206 |
warn |
V768 The expression 'you.undead_state(temp)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-util.cc |
1215 |
warn |
V768 The expression 'you.undead_state(temp)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-util.cc |
1220 |
warn |
V768 The expression 'you.undead_state(false)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
spl-util.cc |
1323 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
spl-util.cc |
1483 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
sqldbm.cc |
266 |
warn |
V614 The 'result' smart pointer is utilized immediately after being declared or reset. It is suspicious that no value was assigned to it. |
sqldbm.cc |
334 |
warn |
V668 There is no sense in testing the 'dptr' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. |
sqldbm.cc |
378 |
warn |
V668 There is no sense in testing the 'dptr' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. |
stairs.cc |
829 |
warn |
V768 The variable 'force_stair' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
stairs.cc |
832 |
warn |
V768 The variable 'force_stair' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
startup.cc |
580 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: full_name, input_text, game_modes, save_games, descriptor. |
stash.cc |
187 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
stash.cc |
460 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
stash.cc |
805 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
stash.cc |
1350 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
state.cc |
30 |
warn |
V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: test_list, flash_monsters. |
status.cc |
1042 |
warn |
V547 Expression 'perm' is always false. |
store.cc |
358 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
362 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
366 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
370 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
374 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
378 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
382 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
386 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
390 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
298 |
warn |
V794 The assignment operator should be protected from the case of 'this == &other'. |
store.cc |
574 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
581 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
590 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
635 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
store.cc |
644 |
warn |
V572 It is odd that the object which was created using 'new' operator is immediately cast to another type. |
stringutil.cc |
257 |
warn |
V522 There might be dereferencing of a potential null pointer 'buf2'. A constructor of the string class expects a valid pointer. |
tags.cc |
1120 |
warn |
V522 There might be dereferencing of a potential null pointer 'featm'. |
tags.cc |
2237 |
warn |
V1016 Expression 'you.religion >= 0' is always true. |
tags.cc |
2541 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
tags.cc |
3184 |
warn |
V560 A part of conditional expression is always false: j >= OLD_NUM_ABILITIES. |
tags.cc |
3195 |
err |
V654 The condition 'j < OLD_NUM_ABILITIES' of loop is always false. |
tags.cc |
3195 |
err |
V621 Consider inspecting the 'for' operator. It's possible that the loop will be executed incorrectly or won't be executed at all. |
tags.cc |
5558 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
tags.cc |
6143 |
warn |
V547 Expression 'slot.spell == SPELL_CORRUPT_BODY' is always false. |
target.cc |
265 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
target.cc |
588 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
target.cc |
1080 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: base_beam. |
target.cc |
1152 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: no_landing_reason, blocked_landing_reason. |
terrain.cc |
903 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
terrain.cc |
1629 |
warn |
V768 The expression 'you.undead_state()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
terrain.cc |
1948 |
warn |
V522 There might be dereferencing of a potential null pointer 'tmarker'. |
terrain.cc |
2016 |
warn |
V522 There might be dereferencing of a potential null pointer 'tmarker'. |
terrain.cc |
2082 |
warn |
V522 There might be dereferencing of a potential null pointer 'tmarker'. |
terrain.cc |
2124 |
warn |
V522 There might be dereferencing of a potential null pointer 'tmarker'. |
terrain.cc |
2128 |
warn |
V768 The variable 'newfeat' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
throw.cc |
807 |
warn |
V547 Expression '!thrown.quantity' is always false. |
timed-effects.cc |
1174 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
timed-effects.cc |
1612 |
warn |
V522 There might be dereferencing of a potential null pointer 'cmark'. |
timed-effects.cc |
1650 |
warn |
V522 There might be dereferencing of a potential null pointer 'marker'. |
transform.cc |
401 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
transform.cc |
416 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
transform.cc |
1323 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
transform.cc |
1534 |
warn |
V768 The expression 'you.undead_state(false)' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
traps.cc |
1365 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
travel.cc |
219 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
travel.cc |
357 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
travel.cc |
1022 |
err |
V547 Expression 'result != CMD_NO_CMD' is always false. |
travel.cc |
1668 |
warn |
V560 A part of conditional expression is always true: (dir = 1). |
travel.cc |
2959 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
travel.cc |
3137 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
travel.cc |
4578 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
travel.cc |
4124 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: notified_mp_full, notified_hp_full, travel_speed, direction. |
travel.cc |
1070 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: try_fallback. |
ui.cc |
422 |
warn |
V768 The variable 'align_items' is of enum type. It is odd that it is used as a variable of a Boolean-type. |
ui.cc |
65 |
warn |
V730 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: needs_paint, m_w, m_h, m_region. |
view.cc |
544 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
view.cc |
700 |
warn |
V768 The expression 'knowledge.feat()' is of enum type. It is odd that it is used as an expression of a Boolean-type. |
view.cc |
1028 |
warn |
V560 A part of conditional expression is always true: !did_exclude. |
view.cc |
1576 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
view.cc |
1192 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: current_frame. |
view.cc |
1212 |
err |
V730 Not all members of a class are initialized inside the constructor. Consider inspecting: current_frame. |
viewchar.cc |
115 |
warn |
V1016 Expression 'dchar >= 0' is always true. |
viewmap.cc |
188 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
viewmap.cc |
785 |
warn |
V519 The 'move_x' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 696, 785. |
viewmap.cc |
783 |
warn |
V519 The 'start_y' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 732, 783. |
wiz-fsim.cc |
729 |
err |
V773 The function was exited without closing the file referenced by the 'o' handle. A resource leak is possible. |
wiz-fsim.cc |
751 |
warn |
V519 The 'fsim_proc' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 750, 751. |
wiz-item.cc |
482 |
err |
V547 Expression 'keyin == 'e'' is always true. |
wiz-item.cc |
1167 |
warn |
V557 Array overrun is possible. The value of 'i' index could reach 25. |
wiz-mon.cc |
407 |
err |
V510 The 'mprf' function is not expected to receive class-type variable as third actual argument. |
wiz-mon.cc |
424 |
err |
V547 Expression 'mons.attitude == ATT_STRICT_NEUTRAL' is always true. |
wiz-mon.cc |
461 |
warn |
V1016 Expression 'hab >= 0' is always true. |
wiz-mon.cc |
693 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. Consider inspecting the 'type == 'b' || type == 'r' && coinflip()' expression. |
xom.cc |
387 |
warn |
V560 A part of conditional expression is always true: chance > 0. |
xom.cc |
753 |
warn |
V1016 Expression 'iorig > GOD_NO_GOD' is always true. |
xom.cc |
1286 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
xom.cc |
1639 |
warn |
V547 Expression 'effects.empty()' is always true. |
xom.cc |
1708 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
xom.cc |
2275 |
warn |
V547 Expression 'rc' is always true. |
xom.cc |
3124 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
tileview.cc |
787 |
err |
V547 Expression 'x < 80 - 1' is always true. |
tileview.cc |
789 |
err |
V547 Expression 'y < 70 - 1' is always true. |
rltiles/tiledef-floor.cc |
6073 |
warn |
V547 Expression '!str' is always false. |
rltiles/tiledef-wall.cc |
7860 |
warn |
V547 Expression '!str' is always false. |
rltiles/tiledef-feat.cc |
3595 |
warn |
V547 Expression '!str' is always false. |
rltiles/tiledef-main.cc |
8796 |
warn |
V547 Expression '!str' is always false. |
rltiles/tiledef-player.cc |
19567 |
warn |
V547 Expression '!str' is always false. |
rltiles/tiledef-gui.cc |
4836 |
warn |
V547 Expression '!str' is always false. |
rltiles/tiledef-icons.cc |
782 |
warn |
V547 Expression '!str' is always false. |
main.cc |
2453 |
warn |
V648 Priority of the '&&' operation is higher than that of the '||' operation. |
levcomp.tab.cc |
1181 |
warn |
V560 A part of conditional expression is always true: yysize1 <= ((long unsigned int) - 1). |
levcomp.tab.cc |
1206 |
warn |
V560 A part of conditional expression is always true: yysize1 <= ((long unsigned int) - 1). |
levcomp.tab.cc |
1215 |
warn |
V560 A part of conditional expression is always true. |
levcomp.tab.cc |
1384 |
warn |
V592 The expression was enclosed by parentheses twice: ((expression)). One pair of parentheses is unnecessary or misprint is present. |
levcomp.tab.cc |
2453 |
warn |
V779 Unreachable code detected. It is possible that an error is present. |
util/levcomp.tab.cc |
65 |
err |
V011 Presence of #line directives may cause some diagnostic messages to have incorrect file name and line number. |
levcomp.lex.cc |
3236 |
warn |
V1004 The 'yy_buffer_stack' pointer was used unsafely after it was verified against nullptr. Check lines: 3225, 3236. |
levcomp.lex.cc |
3384 |
warn |
V1004 The 'yy_buffer_stack' pointer was used unsafely after it was verified against nullptr. Check lines: 3373, 3384. |
util/levcomp.lex.cc |
1 |
err |
V011 Presence of #line directives may cause some diagnostic messages to have incorrect file name and line number. |
util/levcomp.tab.h |
155 |
err |
V011 Presence of #line directives may cause some diagnostic messages to have incorrect file name and line number. |
util/levcomp.lex.cc |
1 |
err |
V002 Some diagnostic messages may contain incorrect line number in this file. |