Loading

PVS-Studio

  1. www.viva64.com/en/w:1:1: error: Help: The documentation for all analyzer warnings is available here: https://www.viva64.com/en/w/.
  2. src/3rdparty/md5/md5.cpp:160:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: buf.
  3. src/3rdparty/squirrel/squirrel/sqvm.h:14:1: warning: V690 The 'SQExceptionTrap' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  4. src/3rdparty/squirrel/squirrel/sqvm.h:162:1: warning: V703 It is odd that the '_sharedstate' field in derived class 'SQVM' overwrites field in base class 'SQCollectable'. Check lines: sqvm.h:162, sqobject.h:345.
  5. src/3rdparty/squirrel/squirrel/sqclass.cpp:25:1: error: V595 The 'base' pointer was utilized before it was verified against nullptr. Check lines: 25, 28.
  6. src/3rdparty/squirrel/squirrel/sqvm.h:15:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _stackbase, _stacksize, _ip, _extarget.
  7. src/3rdparty/squirrel/squirrel/sqlexer.cpp:274:1: error: V779 Unreachable code detected. It is possible that an error is present.
  8. src/3rdparty/squirrel/squirrel/sqarray.h:51:1: warning: V612 An unconditional 'return' within a loop.
  9. src/3rdparty/squirrel/squirrel/sqapi.cpp:832:1: warning: V547 Expression 'pushval' is always true.
  10. src/3rdparty/squirrel/squirrel/sqcompiler.cpp:169:1: warning: V506 Pointer to local variable 'funcstate' is stored outside the scope of this variable. Such a pointer will become invalid.
  11. src/3rdparty/squirrel/squirrel/sqcompiler.cpp:773:1: warning: V728 An excessive check can be simplified. The '||' operator is surrounded by opposite expressions '!(_expstates.top())._class_or_delete' and '(_expstates.top())._class_or_delete'.
  12. src/3rdparty/squirrel/squirrel/sqcompiler.cpp:839:1: warning: V728 An excessive check can be simplified. The '||' operator is surrounded by opposite expressions '!hasattrs' and 'hasattrs'.
  13. src/3rdparty/squirrel/squirrel/sqcompiler.cpp:1135:1: warning: V779 Unreachable code detected. It is possible that an error is present.
  14. src/3rdparty/squirrel/squirrel/sqobject.cpp:72:1: warning: V612 An unconditional 'return' within a loop.
  15. src/blitter/32bpp_anim.cpp:39:1: warning: V1032 The pointer 'src_n' is cast to a more strictly aligned pointer type.
  16. src/blitter/32bpp_anim.cpp:388:1: warning: V1032 The pointer 'usrc' is cast to a more strictly aligned pointer type.
  17. src/blitter/32bpp_anim.cpp:427:1: warning: V1032 The pointer 'udst' is cast to a more strictly aligned pointer type.
  18. src/3rdparty/squirrel/squirrel/sqvm.cpp:222:1: warning: V779 Unreachable code detected. It is possible that an error is present.
  19. src/newgrf_config.h:103:1: warning: V690 The 'GRFError' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  20. src/newgrf_config.h:123:1: warning: V690 The 'GRFParameterInfo' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  21. src/newgrf_config.h:153:1: warning: V690 The 'GRFConfig' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  22. src/window_gui.h:168:1: warning: V690 Copy constructor is declared as private in the 'WindowDesc' class, but the default '=' operator will still be generated by compiler. It is dangerous to use such a class.
  23. src/widget_type.h:605:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: count, cap, pos.
  24. src/blitter/32bpp_optimized.cpp:45:1: warning: V1032 The pointer 'src_n' is cast to a more strictly aligned pointer type.
  25. src/blitter/32bpp_optimized.cpp:296:1: warning: V1032 The pointer 'dst_n_orig[z]' is cast to a more strictly aligned pointer type.
  26. src/blitter/32bpp_optimized.cpp:367:1: warning: V1032 The pointer 'dst_n' is cast to a more strictly aligned pointer type.
  27. src/company_base.h:103:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: cur_economy, old_economy, num_valid_stat_ent.
  28. src/error.h:30:1: warning: V690 The 'ErrorMessageData' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  29. src/command_func.h:25:1: error: V1043 A global object variable 'CMD_ERROR' is declared in the header. Multiple copies of it will be created in all translation units that include this header file.
  30. src/network/core/address.h:29:1: warning: V690 The 'NetworkAddress' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  31. src/hotkeys.h:42:1: warning: V690 Copy constructor is declared as private in the 'HotkeyList' class, but the default '=' operator will still be generated by compiler. It is dangerous to use such a class.
  32. src/ai/ai_gui.cpp:484:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  33. src/widgets/dropdown_type.h:62:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: decode_params.
  34. src/querystring_gui.h:40:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: caption, handled.
  35. src/network/core/address.h:50:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: hostname.
  36. src/network/core/address.h:63:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: hostname, address.
  37. src/ai/ai_gui.cpp:302:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: clicked_increase, clicked_row, line_height.
  38. src/ai/ai_gui.cpp:729:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: line_height.
  39. src/blitter/32bpp_sse2.cpp:77:1: warning: V560 A part of conditional expression is always true: src->a != 0.
  40. src/blitter/32bpp_sse2.cpp:101:1: warning: V1032 The pointer 'dst_mv' is cast to a more strictly aligned pointer type.
  41. src/blitter/32bpp_sse_func.hpp:287:1: warning: V1032 The pointer 'src_mv' is cast to a more strictly aligned pointer type.
  42. src/blitter/32bpp_anim_sse4.cpp:84:1: warning: V1032 The pointer 'src_mv' is cast to a more strictly aligned pointer type.
  43. src/blitter/32bpp_anim_sse4.cpp:123:1: warning: V1032 The pointer 'anim' is cast to a more strictly aligned pointer type.
  44. src/vehicle_func.h:30:1: error: V1043 A global object variable 'VEHICLE_PROFIT_THRESHOLD' is declared in the header. Multiple copies of it will be created in all translation units that include this header file.
  45. src/core/smallstack_type.hpp:263:1: warning: V717 It is suspicious to cast object of base class 'SmallStackItem' to derived class 'SmallStack'.
  46. src/map_func.h:36:1: warning: V707 Giving short names to global variables is considered to be bad practice. It is suggested to rename '_m' variable.
  47. src/game/game_text.cpp:323:1: warning: V1023 A pointer without owner is added to the 'this->compiled_strings' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  48. src/cargopacket.h:251:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: count, cargo_days_in_transit.
  49. src/station_base.h:49:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: unrestricted.
  50. src/station_base.h:308:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: flags, type, layout, rotation, psa.
  51. src/linkgraph/demands.cpp:139:1: warning: V764 Possible incorrect order of arguments passed to 'SetDemands' function: 'to_id' and 'from_id'.
  52. src/misc/blob.hpp:315:1: warning: V690 The 'OnTransfer' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  53. src/misc/dbg_helpers.h:99:1: warning: V690 The 'KnownStructKey' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  54. src/linkgraph/linkgraph_gui.h:55:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: dirty.
  55. src/music/midifile.hpp:28:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: realtime.
  56. src/network/core/address.cpp:45:1: warning: V641 The size of the '& this->address' buffer is not a multiple of the element size of the type 'const struct sockaddr_in6'.
  57. src/network/core/address.cpp:174:1: warning: V560 A part of conditional expression is always true: tmp_cidr < cidr.
  58. src/network/core/address.cpp:194:1: warning: V641 The size of the '& this->address' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
  59. src/network/core/address.cpp:195:1: warning: V641 The size of the '& mask_address.address' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
  60. src/linkgraph/mcf.cpp:64:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: cached_annotation.
  61. src/vehicle_base.h:718:1: warning: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
  62. src/order_base.h:53:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: type, dest, wait_time, travel_time, next.
  63. src/linkgraph/refresh.h:70:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: from, to, cargo.
  64. src/music/midifile.cpp:1156:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: tickdiv.
  65. src/music/midifile.cpp:567:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: tempo_ticks, current_tempo, shouldplayflag.
  66. src/network/core/tcp.cpp:242:1: error: V562 It's odd to compare a bool type value with a value of 0.
  67. src/network/network.cpp:513:1: error: V773 Visibility scope of the 'cs' pointer was exited without releasing the memory. A memory leak is possible.
  68. src/network/network_base.h:36:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: client_name, client_lang, client_playas, join_date.
  69. src/network/network_client.cpp:146:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: token.
  70. src/network/network_admin.cpp:121:1: error: V773 Visibility scope of the 'as' pointer was exited without releasing the memory. A memory leak is possible.
  71. src/network/network_admin.cpp:65:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: update_frequency.
  72. src/network/network_content.cpp:430:1: error: V530 The return value of function 'gzerror' is required to be utilized.
  73. src/network/network_content.cpp:590:1: error: V595 The 'this->curFile' pointer was utilized before it was verified against nullptr. Check lines: 590, 601.
  74. src/network/network_content_gui.cpp:616:1: warning: V778 Two similar code fragments were found. Perhaps, this is a typo and 'WID_NCL_TYPE' variable should be used instead of 'WID_NCL_CHECKBOX'.
  75. src/network/network_gui.cpp:1060:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: widget_id.
  76. src/network/network_gui.cpp:1367:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: company_info.
  77. src/network/network_gui.cpp:1875:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: server_client_width, line_height.
  78. src/network/network_gui.cpp:2031:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: password_type.
  79. src/network/network_udp.cpp:394:1: warning: V641 The size of the '& addr_storage' buffer is not a multiple of the element size of the type 'sockaddr_in6'.
  80. src/autoreplace_base.h:42:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: next, group_id, replace_when_old.
  81. src/network/network_server.cpp:209:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: lag_test, last_token, last_token_frame, savegame.
  82. src/ground_vehicle.hpp:90:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: gcache, gv_flags.
  83. src/newgrf_spritegroup.h:81:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: num_loaded, num_loading, loaded, loading.
  84. src/pathfinder/pf_performance_timer.hpp:56:1: warning: V547 Expression 'm_pperf != nullptr' is always true.
  85. src/pathfinder/follow_track.hpp:162:1: warning: V1016 The value is out of range of enum 'TrackdirBits' values. This causes unspecified or undefined behavior.
  86. src/pathfinder/follow_track.hpp:471:1: warning: V547 Expression 'max_speed > spd' is always true.
  87. src/pathfinder/npf/npf.cpp:1042:1: warning: V506 Pointer to local variable 'result' is stored outside the scope of this variable. Such a pointer will become invalid.
  88. src/ship.h:36:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: state, rotation, rotation_x_pos, rotation_y_pos.
  89. src/roadstop_base.h:74:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: next, east, west.
  90. src/waypoint_base.h:25:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: town_cn.
  91. src/economy_base.h:38:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: front, owner, current_station, ct.
  92. src/goal_base.h:34:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: company, type, dst, text, progress, completed.
  93. src/depot_base.h:29:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: town, name, town_cn, build_date.
  94. src/object_base.h:34:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: type, town, build_date, colour, view.
  95. src/saveload/order_sl.cpp:93:1: warning: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated copy constructor.
  96. src/story_base.h:57:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: sort_value, page, type, referenced_id, text.
  97. src/story_base.h:79:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: sort_value, date, company, title.
  98. src/table/townname.h:2081:1: warning: V653 A suspicious string consisting of two parts is used for initialization. It is possible that a comma is missing. Consider inspecting this literal: "Nov\xC3\xA9"" Mesto nad V\xC3\xA1hom".
  99. src/saveload/oldloader_sl.cpp:654:1: error: V614 Uninitialized variable 'anim_list[i]' used.
  100. src/saveload/oldloader_sl.cpp:1760:1: warning: V506 Pointer to local variable 'map3' is stored outside the scope of this variable. Such a pointer will become invalid.
  101. src/saveload/oldloader_sl.cpp:1803:1: warning: V506 Pointer to local variable 'engines' is stored outside the scope of this variable. Such a pointer will become invalid.
  102. src/saveload/oldloader_sl.cpp:1805:1: warning: V506 Pointer to local variable 'vehnames' is stored outside the scope of this variable. Such a pointer will become invalid.
  103. src/effectvehicle_base.h:31:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: animation_state, animation_substate.
  104. src/disaster_vehicle.h:45:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: image_override, big_ufo_destroyer_target, flags.
  105. src/saveload/saveload.cpp:1940:1: warning: V1032 The pointer 'out' is cast to a more strictly aligned pointer type.
  106. src/saveload/saveload.cpp:1986:1: warning: V1032 The pointer 'out' is cast to a more strictly aligned pointer type.
  107. src/saveload/saveload.cpp:98:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: buf.
  108. src/saveload/saveload.cpp:2052:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: fread_buf.
  109. src/saveload/saveload.cpp:2181:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: fread_buf.
  110. src/saveload/waypoint_sl.cpp:206:1: error: V789 Iterators for the '_old_waypoints' container, used in the range-based for loop, become invalid upon the call of the 'clear' function.
  111. src/script/api/script_airport.cpp:27:1: warning: V1016 Expression 'type >= 0' is always true.
  112. src/script/api/script_goal.cpp:122:1: warning: V547 Expression '(int) type <::GOAL_QUESTION_TYPE_COUNT' is always true.
  113. src/script/api/script_goal.cpp:141:1: warning: V547 Expression 'client < (1 << 16)' is always true.
  114. src/script/api/script_log.cpp:47:1: error: V773 Visibility scope of the 'log' pointer was exited without releasing the memory. A memory leak is possible.
  115. src/script/api/script_log.cpp:64:1: warning: V612 An unconditional 'break' within a loop.
  116. src/script/api/script_log.cpp:81:1: error: V773 Visibility scope of the 'log' pointer was exited without releasing the memory. A memory leak is possible.
  117. src/script/api/script_list.cpp:530:1: warning: V560 A part of conditional expression is always false: sorter != SORT_BY_ITEM.
  118. src/script/api/script_infrastructure.cpp:34:1: warning: V1016 Expression '(::RoadType) roadtype >= ROADTYPE_END' is always false.
  119. src/script/api/script_infrastructure.cpp:91:1: warning: V1016 Expression '(::RoadType) roadtype >= ROADTYPE_END' is always false.
  120. src/script/api/script_object.cpp:356:1: warning: V547 Expression 'callback != nullptr' is always true.
  121. src/script/api/script_rail.cpp:291:1: warning: V684 A value of the variable 'p2' is not modified. Consider inspecting the expression. It is possible that '1' should be present instead of '0'.
  122. src/script/api/script_rail.cpp:457:1: warning: V614 Potentially uninitialized variable 'signal_cycles' used.
  123. src/script/api/script_order.cpp:194:1: error: V501 There are identical sub-expressions '((order_flags & OF_UNLOAD) == 0 || (order_flags & OF_NO_UNLOAD) == 0)' to the left and to the right of the '&&' operator.
  124. src/script/api/script_road.cpp:68:1: warning: V1016 Expression '(::RoadType) road_type < ROADTYPE_END' is always true.
  125. src/script/api/script_road.cpp:544:1: warning: V560 A part of conditional expression is always true: road_veh_type == ROADVEHTYPE_TRUCK.
  126. src/script/api/script_vehiclelist.cpp:124:1: warning: V1016 Expression 'vehicle_type < ScriptVehicle::VT_RAIL' is always false.
  127. src/script/script_info_dummy.cpp:92:1: warning: V1004 The 'newline' pointer was used unsafely after it was verified against nullptr. Check lines: 89, 92.
  128. src/script/script_info.cpp:135:1: warning: V688 The 'name' local variable possesses the same name as one of the class members, which can result in a confusion.
  129. src/script/script_instance.cpp:77:1: error: V678 An object is used as an argument to its own method. Consider checking the first actual argument of the 'SetGlobalPointer' function.
  130. src/script/script_instance.cpp:52:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: last_allocated_memory.
  131. src/widgets/dropdown.cpp:96:1: warning: V751 Parameter 'bottom' is not used inside function body.
  132. src/widgets/dropdown.cpp:441:1: error: V773 Visibility scope of the 'dropdown' pointer was exited without releasing the memory. A memory leak is possible.
  133. src/widgets/dropdown.cpp:502:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  134. src/widgets/dropdown.cpp:522:1: warning: V522 There might be dereferencing of a potential null pointer 'dw'.
  135. src/video/sdl2_v.cpp:659:1: warning: V668 There is no sense in testing the '_draw_mutex' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error.
  136. src/saveload/afterload.cpp:829:1: warning: V728 An excessive check can be simplified. The '||' operator is surrounded by opposite expressions '!_networking' and '_networking'.
  137. src/saveload/afterload.cpp:1442:1: warning: V1026 The 'st->build_date' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
  138. src/saveload/afterload.cpp:1443:1: warning: V1026 The 'wp->build_date' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
  139. src/saveload/afterload.cpp:1444:1: warning: V1026 The 'e->intro_date' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
  140. src/saveload/afterload.cpp:1449:1: warning: V1026 The 'v->date_of_last_service' variable is incremented in the loop. Undefined behavior will occur in case of signed integer overflow.
  141. src/saveload/afterload.cpp:2144:1: error: V773 Visibility scope of the 'o' pointer was exited without releasing the memory. A memory leak is possible.
  142. src/animated_tile.cpp:69:1: warning: V547 Expression '* ti == curr' is always true.
  143. src/airport_gui.cpp:225:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  144. src/autoreplace_gui.cpp:191:1: warning: V560 A part of conditional expression is always true: this->sel_engine[0] != INVALID_ENGINE.
  145. src/autoreplace_gui.cpp:516:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  146. src/autoreplace_gui.cpp:517:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  147. src/fontcache.h:217:1: warning: V730 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: font, size, aa.
  148. src/aircraft_cmd.cpp:864:1: error: V595 The 'st' pointer was utilized before it was verified against nullptr. Check lines: 864, 867.
  149. src/bridge_gui.cpp:140:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: bridgetext_offset.
  150. src/cpu.cpp:132:1: warning: V1009 Check the array initialization. Only the first element is initialized explicitly. The rest elements are initialized with zeros.
  151. src/cargopacket.cpp:29:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: count, days_in_transit, source, source_xy.
  152. src/command.cpp:716:1: error: V586 The 'clear' function is called twice for deallocation of the same resource. Check lines: 672, 716.
  153. src/console_gui.cpp:518:1: warning: V1016 Expression 'TC_BEGIN <= c' is always true.
  154. src/cheat_gui.cpp:218:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: clicked, header_height, clicked_widget, line_height.
  155. src/company_gui.cpp:610:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  156. src/company_gui.cpp:613:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  157. src/company_gui.cpp:2098:1: warning: V688 The 'left' local variable possesses the same name as one of the class members, which can result in a confusion.
  158. src/company_gui.cpp:697:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: line_height.
  159. src/company_gui.cpp:1816:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: total_width.
  160. src/company_gui.cpp:2283:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: query_widget.
  161. src/date_gui.cpp:78:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  162. src/date_gui.cpp:85:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  163. src/company_cmd.cpp:443:1: warning: V756 The 'i' counter is not used inside a nested loop. Consider inspecting usage of 'j' counter.
  164. src/date.cpp:138:1: warning: V557 Array overrun is possible. The value of 'rem' index could reach 366.
  165. src/map_func.h:348:1: error: V557 Array overrun is possible. The 'TileAddByDiagDir' function processes value '[0..255]'. Inspect the second argument. Check lines: 'map_func.h:348', 'map_func.h:386', 'dock_gui.cpp:274'.
  166. src/disaster_vehicle.cpp:566:1: error: V773 Visibility scope of the 'u' pointer was exited without releasing the memory. A memory leak is possible.
  167. src/disaster_vehicle.cpp:725:1: error: V773 Visibility scope of the 'v' pointer was exited without releasing the memory. A memory leak is possible.
  168. src/disaster_vehicle.cpp:743:1: error: V773 Visibility scope of the 'v' pointer was exited without releasing the memory. A memory leak is possible.
  169. src/disaster_vehicle.cpp:769:1: error: V773 Visibility scope of the 'v' pointer was exited without releasing the memory. A memory leak is possible.
  170. src/disaster_vehicle.cpp:797:1: error: V773 Visibility scope of the 'v' pointer was exited without releasing the memory. A memory leak is possible.
  171. src/disaster_vehicle.cpp:815:1: error: V773 Visibility scope of the 'v' pointer was exited without releasing the memory. A memory leak is possible.
  172. src/disaster_vehicle.cpp:126:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: flags.
  173. src/error_gui.cpp:77:1: warning: V1002 The 'ErrorMessageData' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
  174. src/error_gui.cpp:103:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: textref_stack.
  175. src/error_gui.cpp:178:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: height_summary, height_detailed.
  176. src/fontcache.cpp:634:1: error: V616 The '(FT_RENDER_MODE_NORMAL)' named constant with the value of 0 is used in the bitwise operation.
  177. src/fontcache.cpp:660:1: warning: V547 Expression 'aa' is always false.
  178. src/fontcache.cpp:662:1: warning: V547 Expression 'aa' is always false.
  179. src/fontcache.cpp:267:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: used_size.
  180. src/fios.cpp:696:1: warning: V576 Incorrect format. Consider checking the third actual argument of the 'fscanf' function. A pointer to the signed int type is expected.
  181. src/engine.cpp:123:1: warning: V557 Array overrun is possible. The value of 'base' index could reach 115.
  182. src/engine.cpp:129:1: warning: V557 Array overrun is possible. The value of 'base' index could reach 115.
  183. src/engine.cpp:135:1: warning: V557 Array overrun is possible. The value of 'base' index could reach 115.
  184. src/engine.cpp:560:1: error: V773 Visibility scope of the 'e' pointer was exited without releasing the memory. A memory leak is possible.
  185. src/engine_gui.cpp:72:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: vehicle_space.
  186. src/economy.cpp:239:1: warning: V619 The array 'c->old_economy' is being utilized as a pointer to single object.
  187. src/economy.cpp:1182:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: owner, ct.
  188. src/gfx_layout.cpp:728:1: warning: V547 Expression 'line.layout == nullptr' is always true.
  189. src/framerate_gui.cpp:1014:1: warning: V1016 Expression 'elem < PFE_FIRST' is always false.
  190. src/framerate_gui.cpp:71:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: durations, timestamps, acc_duration, acc_timestamp.
  191. src/base_media_func.h:71:1: warning: V688 The 'files' local variable possesses the same name as one of the class members, which can result in a confusion.
  192. src/gfxinit.cpp:157:1: warning: V619 The array 'sounds_set->files' is being utilized as a pointer to single object.
  193. src/genworld_gui.cpp:885:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: widget_id.
  194. src/graph_gui.cpp:294:1: error: V590 Consider inspecting this expression. The expression is excessive or contains a misprint.
  195. src/graph_gui.cpp:309:1: warning: V688 The 'resize' local variable possesses the same name as one of the class members, which can result in a confusion.
  196. src/graph_gui.cpp:381:1: warning: V688 The 'month' local variable possesses the same name as one of the class members, which can result in a confusion.
  197. src/graph_gui.cpp:382:1: warning: V688 The 'year' local variable possesses the same name as one of the class members, which can result in a confusion.
  198. src/graph_gui.cpp:952:1: warning: V547 Expression 'lowered' is always true.
  199. src/graph_gui.cpp:1157:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: ordinal_width, text_width, icon_width, line_height.
  200. src/group_gui.cpp:255:1: warning: V688 The 'left' function argument possesses the same name as one of the class members, which can result in a confusion.
  201. src/group_gui.cpp:589:1: warning: V688 The 'left' local variable possesses the same name as one of the class members, which can result in a confusion.
  202. src/vehicle_gui_base.h:41:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: sorting, unitnumber_digits, vscroll.
  203. src/group_gui.cpp:343:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: group_confirm, tiny_step_height.
  204. src/goal.cpp:107:1: error: V773 Visibility scope of the 'g' pointer was exited without releasing the memory. A memory leak is possible.
  205. src/group_cmd.cpp:352:1: error: V773 Visibility scope of the 'g' pointer was exited without releasing the memory. A memory leak is possible.
  206. src/group_cmd.cpp:34:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: num_vehicle, autoreplace_defined, autoreplace_finished, num_profit_vehicle.
  207. src/group_cmd.cpp:298:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: name, vehicle_type, replace_protection, livery, parent.
  208. src/heightmap.cpp:152:1: warning: V547 Expression '(uint64) width * height >= (size_t) - 1' is always false.
  209. src/ini_load.cpp:217:1: warning: V688 The 'group' local variable possesses the same name as one of the class members, which can result in a confusion.
  210. src/ini_load.cpp:219:1: warning: V688 The 'comment' local variable possesses the same name as one of the class members, which can result in a confusion.
  211. src/map.cpp:32:1: warning: V707 Giving short names to global variables is considered to be bad practice. It is suggested to rename '_m' variable.
  212. src/misc_gui.cpp:117:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: landinfo_data.
  213. src/misc_gui.cpp:488:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: line_height.
  214. src/misc_gui.cpp:679:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: params.
  215. src/main_gui.cpp:172:1: error: V595 The 'vp' pointer was utilized before it was verified against nullptr. Check lines: 172, 176.
  216. src/industry_gui.cpp:535:1: warning: V688 The 'left' local variable possesses the same name as one of the class members, which can result in a confusion.
  217. src/industry_gui.cpp:812:1: warning: V688 The 'left' function argument possesses the same name as one of the class members, which can result in a confusion.
  218. src/industry_gui.cpp:812:1: warning: V688 The 'top' function argument possesses the same name as one of the class members, which can result in a confusion.
  219. src/industry_gui.cpp:958:1: warning: V1016 The value '(IL_RATE1 + j)' is out of range of enum values. This causes unspecified or undefined behavior.
  220. src/industry_gui.cpp:968:1: warning: V688 The 'left' local variable possesses the same name as one of the class members, which can result in a confusion.
  221. src/industry_gui.cpp:2715:1: warning: V1023 A pointer without owner is added to the 'lst' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  222. src/industry_gui.cpp:2729:1: warning: V1023 A pointer without owner is added to the 'lst' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  223. src/industry_gui.cpp:390:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: count, index, enabled.
  224. src/industry_gui.cpp:2166:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: type.
  225. src/newgrf_config.cpp:607:1: warning: V778 Two similar code fragments were found. Perhaps, this is a typo and 'info' variable should be used instead of 'name'.
  226. src/newgrf_config.cpp:204:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: custom_message, data, param_value.
  227. src/newgrf_config.cpp:65:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: next.
  228. src/newgrf_commons.cpp:692:1: error: V595 The 'regs' pointer was utilized before it was verified against nullptr. Check lines: 692, 700.
  229. src/newgrf_commons.cpp:771:1: error: V595 The 'regs' pointer was utilized before it was verified against nullptr. Check lines: 771, 797.
  230. src/newgrf_gui.cpp:381:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  231. src/newgrf_gui.cpp:858:1: warning: V688 The 'top' local variable possesses the same name as one of the class members, which can result in a confusion.
  232. src/newgrf_gui.cpp:927:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  233. src/newgrf_gui.cpp:930:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  234. src/newgrf_gui.cpp:1965:1: warning: V522 There might be dereferencing of a potential null pointer 'nw'.
  235. src/newgrf_gui.cpp:2275:1: error: V773 Visibility scope of the 'w' pointer was exited without releasing the memory. A memory leak is possible.
  236. src/newgrf_industries.cpp:261:1: warning: V688 The 'tile' local variable possesses the same name as one of the class members, which can result in a confusion.
  237. src/newgrf_industries.cpp:273:1: warning: V688 The 'tile' local variable possesses the same name as one of the class members, which can result in a confusion.
  238. src/newgrf_industries.cpp:336:1: error: V547 Expression 'variable == 0x6F' is always true.
  239. src/newgrf_industries.cpp:196:1: error: V595 The 'this->industry' pointer was utilized before it was verified against nullptr. Check lines: 196, 205.
  240. src/newgrf_house.cpp:396:1: warning: V688 The 'house_id' local variable possesses the same name as one of the class members, which can result in a confusion.
  241. src/newgrf_debug_gui.cpp:431:1: warning: V688 The 'width' local variable possesses the same name as one of the class members, which can result in a confusion.
  242. src/newgrf_debug_gui.cpp:354:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: caller_grfid, current_edit_param.
  243. src/newgrf_debug_gui.cpp:815:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: current_sprite.
  244. src/newgrf.cpp:765:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  245. src/newgrf.cpp:783:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  246. src/newgrf.cpp:825:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  247. src/newgrf.cpp:834:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  248. src/newgrf.cpp:870:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  249. src/newgrf.cpp:885:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  250. src/newgrf.cpp:2543:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  251. src/newgrf.cpp:2698:1: error: V512 A call of the 'memcpy' function will lead to underflow of the buffer '_currency_specs[curidx].prefix'.
  252. src/newgrf.cpp:2711:1: error: V512 A call of the 'memcpy' function will lead to underflow of the buffer '& _currency_specs[curidx].suffix'.
  253. src/newgrf.cpp:3256:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  254. src/newgrf.cpp:3723:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  255. src/newgrf.cpp:3741:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  256. src/newgrf.cpp:3759:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  257. src/newgrf.cpp:3777:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  258. src/newgrf.cpp:4727:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  259. src/newgrf.cpp:5271:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  260. src/newgrf.cpp:5284:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  261. src/newgrf.cpp:5293:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  262. src/newgrf.cpp:5304:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  263. src/newgrf.cpp:5266:1: error: V547 Expression 'type == 2' is always true.
  264. src/newgrf.cpp:5432:1: error: V773 Visibility scope of the 'e' pointer was exited without releasing the memory. A memory leak is possible.
  265. src/newgrf.cpp:6023:1: error: V773 Visibility scope of the 'e' pointer was exited without releasing the memory. A memory leak is possible.
  266. src/newgrf.cpp:6540:1: error: V773 Visibility scope of the 'error' pointer was exited without releasing the memory. A memory leak is possible.
  267. src/newgrf.cpp:6654:1: warning: V1037 Two or more case-branches perform the same actions. Check lines: 6654, 6658
  268. src/newgrf.cpp:6656:1: warning: V1037 Two or more case-branches perform the same actions. Check lines: 6656, 6660
  269. src/newgrf.cpp:6708:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  270. src/newgrf.cpp:6757:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  271. src/newgrf.cpp:6879:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  272. src/newgrf.cpp:7078:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  273. src/newgrf.cpp:7153:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  274. src/newgrf.cpp:7353:1: warning: V1037 Two or more case-branches perform the same actions. Check lines: 7353, 7374
  275. src/newgrf.cpp:7503:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  276. src/newgrf.cpp:7785:1: error: V773 The function was exited without releasing the 'error' pointer. A memory leak is possible.
  277. src/newgrf.cpp:9330:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  278. src/newgrf.cpp:9460:1: warning: V773 The return value of function 'DisableGrf' is required to be utilized. A memory leak is possible.
  279. src/newgrf.cpp:8024:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: handler.
  280. src/newgrf_text.cpp:814:1: warning: V690 The 'TextRefStack' class implements a copy constructor, but lacks the '=' operator. It is dangerous to use such a class.
  281. src/newgrf_text.cpp:1067:1: error: V629 Consider inspecting the '1 << cargo' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type.
  282. src/newgrf_text.cpp:820:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: stack.
  283. src/newgrf_text.cpp:822:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: stack.
  284. src/newgrf_station.cpp:288:1: warning: V688 The 'tile' local variable possesses the same name as one of the class members, which can result in a confusion.
  285. src/newgrf_station.cpp:340:1: warning: V688 The 'tile' local variable possesses the same name as one of the class members, which can result in a confusion.
  286. src/newgrf_station.cpp:346:1: warning: V688 The 'axis' local variable possesses the same name as one of the class members, which can result in a confusion.
  287. src/newgrf_station.cpp:347:1: warning: V688 The 'tile' local variable possesses the same name as one of the class members, which can result in a confusion.
  288. src/newgrf_station.cpp:669:1: warning: V560 A part of conditional expression is always true: i < NUM_STATIONSSPECS_PER_STATION.
  289. src/newgrf_station.cpp:679:1: warning: V560 A part of conditional expression is always true: i < NUM_STATIONSSPECS_PER_STATION.
  290. src/news_gui.cpp:1073:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: line_height, date_width.
  291. src/order_cmd.cpp:1775:1: error: V595 The 'v->orders.list' pointer was utilized before it was verified against nullptr. Check lines: 1775, 1784.
  292. src/order_cmd.cpp:2123:1: error: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
  293. src/order_cmd.cpp:2206:1: error: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
  294. src/order_gui.cpp:1308:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  295. src/order_gui.cpp:1458:1: warning: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated copy constructor.
  296. src/openttd.cpp:892:1: error: V586 The 'free' function is called twice for deallocation of the same memory space.
  297. src/openttd.cpp:893:1: error: V586 The 'free' function is called twice for deallocation of the same memory space.
  298. src/openttd.cpp:1076:1: warning: V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 1047, 1076.
  299. src/road_gui.cpp:1292:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  300. src/road_gui.cpp:1328:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  301. src/road_gui.cpp:1369:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  302. src/rail_gui.cpp:1225:1: warning: V519 The '_settings_client.gui.station_dragdrop' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1223, 1225.
  303. src/rail_gui.cpp:1260:1: warning: V519 The '_settings_client.gui.station_dragdrop' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1258, 1260.
  304. src/rail_gui.cpp:2012:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  305. src/rail_gui.cpp:2048:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  306. src/rail_gui.cpp:1518:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: sig_sprite_bottom_offset.
  307. src/rail_cmd.cpp:117:1: warning: V1016 Expression 'var <= SIG_SEMAPHORE' is always true.
  308. src/rail_cmd.cpp:2228:1: warning: V557 Array overrun is possible. The value of 'halftile_corner' index could reach 255.
  309. src/rail_cmd.cpp:2395:1: warning: V557 Array overrun is possible. The value of 'halftile_corner' index could reach 255.
  310. src/rail_cmd.cpp:2399:1: warning: V557 Array overrun is possible. The value of 'halftile_corner' index could reach 255.
  311. src/rail_cmd.cpp:2759:1: warning: V784 The size of the bit mask is less than the size of the first operand. This will cause the loss of higher bits.
  312. src/road_cmd.cpp:1510:1: error: V595 The 'tram_rti' pointer was utilized before it was verified against nullptr. Check lines: 1510, 1527.
  313. src/signs.cpp:30:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: name, sign, x, y, z.
  314. src/settings_gui.cpp:130:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  315. src/settings_gui.cpp:213:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  316. src/settings_gui.cpp:218:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  317. src/settings_gui.cpp:219:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  318. src/settings_gui.cpp:236:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  319. src/settings_gui.cpp:249:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  320. src/settings_gui.cpp:256:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  321. src/settings_gui.cpp:262:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  322. src/settings_gui.cpp:272:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  323. src/settings_gui.cpp:280:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  324. src/settings_gui.cpp:291:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  325. src/settings_gui.cpp:299:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  326. src/settings_gui.cpp:308:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  327. src/settings_gui.cpp:1953:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  328. src/settings_gui.cpp:1958:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  329. src/settings_gui.cpp:1959:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  330. src/settings_gui.cpp:1960:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  331. src/settings_gui.cpp:1961:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  332. src/settings_gui.cpp:2056:1: warning: V688 The 'clicked_entry' local variable possesses the same name as one of the class members, which can result in a confusion.
  333. src/settings_gui.cpp:2076:1: warning: V522 There might be dereferencing of a potential null pointer 'pe'.
  334. src/settings_gui.cpp:2118:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  335. src/settings_gui.cpp:2470:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: query_widget.
  336. src/signs_gui.cpp:149:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: text_offset.
  337. src/spritecache.cpp:463:1: warning: V619 The array 'sprite' is being utilized as a pointer to single object.
  338. src/signs_cmd.cpp:65:1: error: V773 Visibility scope of the 'si' pointer was exited without releasing the memory. A memory leak is possible.
  339. src/settings.cpp:1498:1: error: V610 Undefined behavior. Check the shift operator '<<'. The left operand is negative ('hi' = [-1..15]).
  340. src/settings.cpp:1971:1: warning: V728 An excessive check can be simplified. The '||' operator is surrounded by opposite expressions '!_networking' and '_networking'.
  341. src/story.cpp:137:1: error: V773 Visibility scope of the 's' pointer was exited without releasing the memory. A memory leak is possible.
  342. src/smallmap_gui.cpp:1081:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: min_number_of_columns, min_number_of_fixed_rows, column_width.
  343. src/station.cpp:70:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: bus_stops, truck_stops, had_vehicle_of_type, always_accepted, industry.
  344. src/station_gui.cpp:516:1: warning: V1037 Two or more case-branches perform the same actions. Check lines: 516, 522
  345. src/station_gui.cpp:1342:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: expand_shrink_width.
  346. src/tgp.cpp:681:1: error: V1028 Possible overflow. Consider casting operands, not the result.
  347. src/station_cmd.cpp:1090:1: error: V501 There are identical sub-expressions to the left and to the right of the '-' operator: n - 1 - n
  348. src/station_cmd.cpp:1938:1: error: V595 The 'st' pointer was utilized before it was verified against nullptr. Check lines: 1938, 1944.
  349. src/strings.cpp:402:1: error: V576 Incorrect format. A different number of actual arguments is expected while calling 'seprintf' function. Expected: 3. Present: 4.
  350. src/timetable_gui.cpp:160:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: deparr_time_width, deparr_abbr_width, query_is_speed_query.
  351. src/tree_gui.cpp:57:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: base, count, tree_to_plant.
  352. src/townname.cpp:762:1: warning: V557 Array overrun is possible. The value of 'stem' index could reach 41.
  353. src/town_gui.cpp:1144:1: warning: V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: city.
  354. src/train_gui.cpp:389:1: warning: V560 A part of conditional expression is always true: vscroll_pos > - vscroll_cap.
  355. src/toolbar_gui.cpp:107:1: warning: V751 Parameter 'bottom' is not used inside function body.
  356. src/toolbar_gui.cpp:203:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  357. src/toolbar_gui.cpp:229:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  358. src/toolbar_gui.cpp:232:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  359. src/toolbar_gui.cpp:234:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  360. src/toolbar_gui.cpp:239:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  361. src/toolbar_gui.cpp:243:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  362. src/toolbar_gui.cpp:249:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  363. src/toolbar_gui.cpp:323:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  364. src/toolbar_gui.cpp:324:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  365. src/toolbar_gui.cpp:328:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  366. src/toolbar_gui.cpp:329:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  367. src/toolbar_gui.cpp:330:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  368. src/toolbar_gui.cpp:331:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  369. src/toolbar_gui.cpp:332:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  370. src/toolbar_gui.cpp:333:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  371. src/toolbar_gui.cpp:334:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  372. src/toolbar_gui.cpp:335:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  373. src/toolbar_gui.cpp:336:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  374. src/toolbar_gui.cpp:337:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  375. src/toolbar_gui.cpp:338:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  376. src/toolbar_gui.cpp:339:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  377. src/toolbar_gui.cpp:340:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  378. src/toolbar_gui.cpp:469:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  379. src/toolbar_gui.cpp:470:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  380. src/toolbar_gui.cpp:471:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  381. src/toolbar_gui.cpp:472:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  382. src/toolbar_gui.cpp:480:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  383. src/toolbar_gui.cpp:481:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  384. src/toolbar_gui.cpp:482:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  385. src/toolbar_gui.cpp:483:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  386. src/toolbar_gui.cpp:484:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  387. src/toolbar_gui.cpp:943:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  388. src/toolbar_gui.cpp:965:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  389. src/toolbar_gui.cpp:987:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  390. src/toolbar_gui.cpp:988:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  391. src/toolbar_gui.cpp:989:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  392. src/toolbar_gui.cpp:1371:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: visible, spacers.
  393. src/town_cmd.cpp:744:1: error: V595 The 'hs->grf_prop.grffile' pointer was utilized before it was verified against nullptr. Check lines: 744, 756.
  394. src/train_cmd.cpp:2452:1: warning: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
  395. src/train_cmd.cpp:2485:1: warning: V1002 The 'Order' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
  396. src/tunnelbridge_cmd.cpp:762:1: warning: V557 Array overrun is possible. The value of 'roadtype' index could reach 63.
  397. src/vehicle_cmd.cpp:892:1: error: V522 Dereferencing of the null pointer 'w_rear' might take place.
  398. src/vehicle_cmd.cpp:896:1: error: V522 Dereferencing of the null pointer 'w_front' might take place.
  399. src/vehicle.cpp:1175:1: warning: V1019 Compound assignment expression 'y -= vp->top' is used inside condition.
  400. src/stdafx.h:309:1: warning: V677 Custom declaration of a standard 'uint' type. The declaration from system header files should be used instead.
  401. src/vehicle_gui.cpp:171:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  402. src/vehicle_gui.cpp:172:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  403. src/vehicle_gui.cpp:173:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  404. src/vehicle_gui.cpp:176:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  405. src/vehicle_gui.cpp:177:1: warning: V1023 A pointer without owner is added to the 'list' container by the 'emplace_back' method. A memory leak will occur in case of an exception.
  406. src/vehicle_gui.cpp:1038:1: error: V773 Visibility scope of the 'w' pointer was exited without releasing the memory. A memory leak is possible.
  407. src/vehicle_gui.cpp:1781:1: warning: V584 The 'WID_VD_DETAILS_CARGO_CARRIED' value is present on both sides of the '==' operator. The expression is incorrect or it can be simplified.
  408. src/vehicle_gui.cpp:2898:1: error: V502 Perhaps the '?:' operator works in a different way than it was expected. The '?:' operator has a lower priority than the '||' operator.
  409. src/viewport.cpp:1216:1: warning: V506 Pointer to local variable 'tile_info' is stored outside the scope of this variable. Such a pointer will become invalid.
  410. src/viewport.cpp:2924:1: warning: V547 Expression 'dx + dy < 0' is always false.
  411. src/viewport.cpp:3084:1: warning: V614 Potentially uninitialized buffer 'params' used. Consider checking the third actual argument of the 'ShowMeasurementTooltips' function.
  412. src/viewport.cpp:3180:1: warning: V614 Potentially uninitialized buffer 'params' used. Consider checking the third actual argument of the 'ShowMeasurementTooltips' function.
  413. src/viewport.cpp:3251:1: warning: V614 Potentially uninitialized buffer 'params' used. Consider checking the third actual argument of the 'ShowMeasurementTooltips' function.
  414. src/water_cmd.cpp:1241:1: warning: V560 A part of conditional expression is always false: (dest_behaviour == FLOOD_PASSIVE).
  415. src/widget.cpp:87:1: warning: V522 Dereferencing of the null pointer 'sb' might take place. The potential null pointer is passed into 'ScrollbarClickPositioning' function. Inspect the second argument. Check lines: 87, 151.
  416. src/widget.cpp:1546:1: warning: V522 There might be dereferencing of a potential null pointer 'nw'.
  417. src/widget.cpp:1616:1: warning: V522 There might be dereferencing of a potential null pointer 'child'.
  418. src/widget.cpp:1647:1: warning: V522 There might be dereferencing of a potential null pointer 'child'.
  419. src/widget.cpp:1761:1: error: V595 The 'w' pointer was utilized before it was verified against nullptr. Check lines: 1761, 1774.
  420. src/widget.cpp:2139:1: warning: V1037 Two or more case-branches perform the same actions. Check lines: 2139, 2143
  421. src/widget.cpp:946:1: error: V522 Dereferencing of the null pointer 'wid' might take place. The null pointer is passed into 'Add' function. Inspect the first argument. Check lines: 946, 2879.
  422. src/widget.cpp:2904:1: error: V595 The 'hor' pointer was utilized before it was verified against nullptr. Check lines: 2904, 2906.
  423. src/widget.cpp:971:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: shown_plane.
  424. src/widget.cpp:806:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: min_x, min_y.
  425. src/widget.cpp:870:1: error: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: disp_flags, highlight_colour.
  426. src/widget.cpp:1089:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: pip_pre, pip_inter, pip_post.
  427. src/widget.cpp:1469:1: warning: V730 Not all members of a class are initialized inside the constructor. Consider inspecting: colour, sb, widget_w, widget_h, widgets_x, widgets_y.
  428. src/window.cpp:1903:1: warning: V774 The 'w' pointer was used after the memory was released.
  429. src/window.cpp:2938:1: warning: V560 A part of conditional expression is always false: w == nullptr.

Comments