| Line | Id | CWE | Severity | Message |
| apps/contools/gatecli/unit_device.c |
| 215 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| 353 | redundantAssignment | 563 | style | Variable 'buffer_len' is reassigned a value before the old one has been used. |
| apps/contools/gatecli/unit_file.c |
| 260 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| 839 | unreadVariable | 563 | style | Variable 'ptr_name' is assigned a value that is never used. |
| apps/contools/gatecli/unit_netclient.c |
| 70 | knownConditionTrueFalse | 571 | style | Condition 'running' is always true |
| 208 | knownConditionTrueFalse | 571 | style | Condition 'running' is always true |
| 369 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| 481 | unreadVariable | 563 | style | Variable 'con_stream' is assigned a value that is never used. |
| apps/contools/gatecli/unit_os.c |
| 146 | unreadVariable | 563 | style | Variable 'stream' is assigned a value that is never used. |
| 157 | unreadVariable | 563 | style | Variable 'stream' is assigned a value that is never used. |
| apps/contools/gatecli/unit_sysmgmt.c |
| 27 | redundantAssignment | 563 | style | Variable 'iter' is reassigned a value before the old one has been used. |
| apps/graphic/aniplay/aniplay.c |
| 211 | redundantAssignment | 563 | style | Variable 'result' is reassigned a value before the old one has been used. |
| apps/graphic/gategames/blocklevels.cpp |
| 876 | arrayIndexOutOfBounds | 119 | error, inconcl. | Array 'infoLog[1024]' accessed at index 1024, which is out of bounds. |
| 1410 | redundantAssignment | 563 | style | Variable 'this->shader_program' is reassigned a value before the old one has been used. |
| apps/vast/vdb/vdb.cpp |
| 530 | class_X_Y | | information | The code 'class GATE_API_LOCAL VDB :' is not handled. You can use -I or --include to add handling of this code. |
| gate/arrays.c |
| 224 | nullPointerRedundantCheck | 476 | warning | Either the condition 'dst!=NULL' is redundant or there is possible null pointer dereference: arr. |
| 228 | nullPointerRedundantCheck | 476 | warning | Either the condition 'dst!=NULL' is redundant or there is possible null pointer dereference: arr. |
| 229 | nullPointerRedundantCheck | 476 | warning | Either the condition 'dst!=NULL' is redundant or there is possible null pointer dereference: arr. |
| 230 | nullPointerRedundantCheck | 476 | warning | Either the condition 'dst!=NULL' is redundant or there is possible null pointer dereference: arr. |
| 231 | nullPointerRedundantCheck | 476 | warning | Either the condition 'dst!=NULL' is redundant or there is possible null pointer dereference: arr. |
| 1733 | knownConditionTrueFalse | 571 | style | Condition 'enumerator->current_position==NULL' is always true |
| gate/callstacks.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 20 configurations. Use --force to check all configurations. |
| gate/data/mysql_adapter.c |
| 113 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::length' is never used. |
| 114 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::is_null' is never used. |
| 115 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::buffer' is never used. |
| 116 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::error' is never used. |
| 117 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::row_ptr' is never used. |
| 118 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::store_param_func' is never used. |
| 119 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::fetch_result' is never used. |
| 120 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::skip_result' is never used. |
| 121 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::buffer_length' is never used. |
| 122 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::offset' is never used. |
| 123 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::length_value' is never used. |
| 124 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::param_number' is never used. |
| 125 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::pack_length' is never used. |
| 127 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::error_value' is never used. |
| 128 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::is_unsigned' is never used. |
| 129 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::long_data_used' is never used. |
| 130 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::is_null_value' is never used. |
| 131 | unusedStructMember | 563 | style | struct member 'MYSQL_BIND::extension' is never used. |
| 238 | redundantAssignment | 563 | style | Variable 'state' is reassigned a value before the old one has been used. |
| 332 | unreadVariable | 563 | style | Variable 'ptr_mysql' is assigned a value that is never used. |
| 334 | unreadVariable | 563 | style | Variable 'ptr_meta' is assigned a value that is never used. |
| 336 | unreadVariable | 563 | style | Variable 'fields' is assigned a value that is never used. |
| 337 | unusedVariable | 563 | style | Unused variable: fields_count |
| gate/encode/tarstreams.c |
| 48 | unusedStructMember | 563 | style | struct member 'gate_tarheader::linkname' is never used. |
| 53 | unusedStructMember | 563 | style | struct member 'gate_tarheader::device_major' is never used. |
| 54 | unusedStructMember | 563 | style | struct member 'gate_tarheader::device_minor' is never used. |
| 55 | unusedStructMember | 563 | style | struct member 'gate_tarheader::prefix' is never used. |
| gate/encode/tests/gateencode_cpp_test/test_compression.cpp |
| 50 | redundantAssignment | 563 | style | Variable 'encoder' is reassigned a value before the old one has been used. |
| 64 | redundantAssignment | 563 | style | Variable 'decoder' is reassigned a value before the old one has been used. |
| gate/encode/texts.c |
| 1462 | redundantAssignment | 563 | style | Variable 'ptr_text' is reassigned a value before the old one has been used. |
| gate/encode/zipstreams.c |
| 300 | knownConditionTrueFalse | 570 | style | Condition 'offset==0' is always false |
| gate/environments.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations. |
| gate/files.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 20 configurations. Use --force to check all configurations. |
| gate/functions.c |
| 275 | unusedStructMember | 563 | style | union member 'x86_arguments::function_ptr' is never used. |
| 496 | ConfigurationNotChecked | | information | Skipping configuration 'SIGBUS' since the value of 'SIGBUS' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 502 | ConfigurationNotChecked | | information | Skipping configuration 'SIGSYS' since the value of 'SIGSYS' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 505 | ConfigurationNotChecked | | information | Skipping configuration 'SIGTRAP' since the value of 'SIGTRAP' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 516 | ConfigurationNotChecked | | information | Skipping configuration 'SIGBUS' since the value of 'SIGBUS' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 524 | ConfigurationNotChecked | | information | Skipping configuration 'SIGSYS' since the value of 'SIGSYS' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 527 | ConfigurationNotChecked | | information | Skipping configuration 'SIGTRAP' since the value of 'SIGTRAP' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/graphics/framebuffers.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations. |
| gate/graphics/gl_apis.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 49 configurations. Use --force to check all configurations. |
| gate/graphics/images.c |
| 830 | variableScope | 398 | style | The scope of the variable 'ptrpixel1' can be reduced. |
| 831 | variableScope | 398 | style | The scope of the variable 'ptrpixel4' can be reduced. |
| 833 | variableScope | 398 | style | The scope of the variable 'ptrpixel2' can be reduced. |
| gate/inputs.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 28 configurations. Use --force to check all configurations. |
| gate/io/audiosources.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 14 configurations. Use --force to check all configurations. |
| gate/io/ipcsharedmem.c |
| 51 | unusedStructMember | 563 | style | struct member 'gate_ipcsharedmem_data_class::data' is never used. |
| 242 | autoVariables | 562 | error | Address of local auto-variable assigned to a function parameter. |
| gate/io/serialports.c |
| 845 | unreadVariable | 563 | style | Variable 'param' is assigned a value that is never used. |
| gate/io/videosources.c |
| 3256 | unusedStructMember | 563 | style | struct member 'gate_v4l_convert_code::get_default_dev_ops' is never used. |
| 3258 | unusedStructMember | 563 | style | struct member 'gate_v4l_convert_code::create_with_dev_ops' is never used. |
| gate/mathematics.c |
| 196 | ConfigurationNotChecked | | information | Skipping configuration 'DBL_MAX' since the value of 'DBL_MAX' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 200 | ConfigurationNotChecked | | information | Skipping configuration 'DBL_MAX' since the value of 'DBL_MAX' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 207 | internalAstError | | error | Syntax Error: AST broken, binary operator '=' doesn't have two operands. |
| 222 | ConfigurationNotChecked | | information | Skipping configuration 'FLT_MAX' since the value of 'FLT_MAX' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 226 | ConfigurationNotChecked | | information | Skipping configuration 'FLT_MAX' since the value of 'FLT_MAX' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/net/platform/socket_api.c |
| 123 | autoVariables | 562 | error | Address of local auto-variable assigned to a function parameter. |
| gate/net/sockets.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 22 configurations. Use --force to check all configurations. |
| 345 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_SYS_POSIX;INVALID_SOCKET' since the value of 'INVALID_SOCKET' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/net/sshclients.c |
| 563 | redundantAssignment | 563 | style | Variable 'client->handles[2]' is reassigned a value before the old one has been used. |
| gate/net/tests/gatenet_cpp_test/test_sockets.cpp |
| 265 | redundantAssignment | 563 | style | Variable 'queue' is reassigned a value before the old one has been used. |
| gate/platform/efi/cxx_gate_bridge.cpp |
| 76 | unusedStructMember | 563 | style | union member 'Anonymous0::Characteristics' is never used. |
| 78 | unusedStructMember | 563 | style | struct member 'Anonymous1::Reserved0' is never used. |
| 79 | unusedStructMember | 563 | style | struct member 'Anonymous1::Alignment' is never used. |
| 80 | unusedStructMember | 563 | style | struct member 'Anonymous1::Reserved1' is never used. |
| gate/platform/windows/win32registry.c |
| 41 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_SYS_WIN;HKEY_CURRENT_CONFIG' since the value of 'HKEY_CURRENT_CONFIG' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 47 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_SYS_WIN;HKEY_DYN_DATA' since the value of 'HKEY_DYN_DATA' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/platform/winrt/winrtapp.c |
| 96 | unreadVariable | 563 | style | Variable 'view' is assigned a value that is never used. |
| 142 | redundantAssignment | 563 | style | Variable 'res' is reassigned a value before the old one has been used. |
| 148 | redundantAssignment | 563 | style | Variable 'res' is reassigned a value before the old one has been used. |
| 154 | redundantAssignment | 563 | style | Variable 'res' is reassigned a value before the old one has been used. |
| 156 | redundantAssignment | 563 | style | Variable 'res' is reassigned a value before the old one has been used. |
| 169 | unreadVariable | 563 | style | Variable 'self' is assigned a value that is never used. |
| 489 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| gate/platform_dos.c |
| 114 | ConfigurationNotChecked | | information | Skipping configuration 'ENODATA;GATE_SYS_DOS' since the value of 'ENODATA' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 124 | ConfigurationNotChecked | | information | Skipping configuration 'ENOSR;GATE_SYS_DOS' since the value of 'ENOSR' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 127 | ConfigurationNotChecked | | information | Skipping configuration 'ENOSTR;GATE_SYS_DOS' since the value of 'ENOSTR' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 142 | ConfigurationNotChecked | | information | Skipping configuration 'ETIME;GATE_SYS_DOS' since the value of 'ETIME' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/platform_winapi.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 27 configurations. Use --force to check all configurations. |
| 895 | unusedStructMember | 563 | style | struct member 'PROCESS_BASIC_INFO::Reserved1' is never used. |
| 896 | unusedStructMember | 563 | style | struct member 'PROCESS_BASIC_INFO::PebBaseAddress' is never used. |
| 897 | unusedStructMember | 563 | style | struct member 'PROCESS_BASIC_INFO::Reserved2' is never used. |
| 899 | unusedStructMember | 563 | style | struct member 'PROCESS_BASIC_INFO::Reserved3' is never used. |
| 981 | knownConditionTrueFalse | 570 | style | Condition 'hadvapi' is always false |
| 1518 | unusedStructMember | 563 | style | struct member '_GATE_THREAD_BASIC_INFORMATION::TebBaseAddress' is never used. |
| gate/processes.c |
| 107 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| gate/processes_posix.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 15 configurations. Use --force to check all configurations. |
| gate/properties.c |
| 864 | unusedStructMember | 563 | style | union member 'local_generic_item::buffer' is never used. |
| 1563 | redundantAssignment | 563 | style | Variable 'ptr_cleanup' is reassigned a value before the old one has been used. |
| gate/scripting/pythonscripts.c |
| 115 | redundantAssignment | 563 | style | Variable 'close_library' is reassigned a value before the old one has been used. |
| gate/streams.c |
| 819 | knownConditionTrueFalse | 570 | style | Condition 'position<0' is always false |
| 1218 | knownConditionTrueFalse | 570 | style | Condition 'position<0' is always false |
| gate/synchronization.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 15 configurations. Use --force to check all configurations. |
| gate/system/os_posix.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 19 configurations. Use --force to check all configurations. |
| gate/system/os_winapi.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 33 configurations. Use --force to check all configurations. |
| gate/system/tests/gatesystem_cpp_test/test_os.cpp |
| 24 | redundantAssignment | 563 | style | Variable 'arch' is reassigned a value before the old one has been used. |
| gate/tests.c |
| 508 | unreadVariable | 563 | style | Variable 'ptr_case' is assigned a value that is never used. |
| gate/tests/gatecore_cpp_test/test_arrays.cpp |
| 125 | postfixOperator | 398 | performance | Prefer prefix ++/-- operators for non-primitive types. |
| 129 | postfixOperator | 398 | performance | Prefer prefix ++/-- operators for non-primitive types. |
| gate/tests/gatecore_cpp_test/test_math.cpp |
| 53 | wrongmathcall | 758 | warning | Passing values 0.0 and 0.0 to atan2() leads to implementation-defined result. |
| 54 | wrongmathcall | 758 | warning | Passing values 0.0f and 0.0f to atan2() leads to implementation-defined result. |
| gate/tests/gatecore_cpp_values_test/test_applications.cpp |
| 10 | redundantAssignment | 563 | style | Variable 'testDefAssigned' is reassigned a value before the old one has been used. |
| gate/tests/gatecore_cpp_values_test/test_structs.cpp |
| 90 | redundantAssignment | 563 | style | Variable 'cs3' is reassigned a value before the old one has been used. |
| gate/tests/gatecore_test/test_functions.c |
| 172 | zerodiv | 369 | error | Division by zero. |
| 173 | unreadVariable | 563 | style | Variable 'value' is assigned a value that is never used. |
| 184 | unreadVariable | 563 | style | Variable 'value' is assigned a value that is never used. |
| 193 | unassignedVariable | 665 | style | Variable 'ptr' is not assigned a value. |
| 193 | uninitvar | 908 | error | Uninitialized variable: ptr |
| 194 | uninitvar | 908 | error | Uninitialized variable: ptr |
| gate/tests/gatecore_test/test_math.c |
| 15 | ConfigurationNotChecked | | information | Skipping configuration 'INFINITY;NAN' since the value of 'NAN' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 15 | ConfigurationNotChecked | | information | Skipping configuration 'NAN' since the value of 'NAN' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 16 | ConfigurationNotChecked | | information | Skipping configuration 'INFINITY;NAN' since the value of 'NAN' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 16 | ConfigurationNotChecked | | information | Skipping configuration 'NAN' since the value of 'NAN' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 23 | ConfigurationNotChecked | | information | Skipping configuration 'INFINITY' since the value of 'INFINITY' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 23 | ConfigurationNotChecked | | information | Skipping configuration 'INFINITY;NAN' since the value of 'INFINITY' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 24 | ConfigurationNotChecked | | information | Skipping configuration 'INFINITY' since the value of 'INFINITY' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 24 | ConfigurationNotChecked | | information | Skipping configuration 'INFINITY;NAN' since the value of 'INFINITY' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/times.c |
| 603 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| 608 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| 613 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| gate/ui/comboboxes.c |
| 824 | unreadVariable | 563 | style | Variable 'ctrl' is assigned a value that is never used. |
| gate/ui/forms.c |
| 221 | variableScope | 398 | style | The scope of the variable 'host' can be reduced. |
| 736 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;RDW_FRAME' since the value of 'RDW_FRAME' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 832 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;RDW_FRAME' since the value of 'RDW_FRAME' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 1897 | knownConditionTrueFalse | 570 | style | Condition 'w_owner' is always false |
| 1926 | knownConditionTrueFalse | 570 | style | Condition 'w_owner' is always false |
| gate/ui/gateui_gtk.c |
| 46 | unreadVariable | 563 | style | Variable 'program_path' is assigned a value that is never used. |
| gate/ui/gateui_winapi.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 16 configurations. Use --force to check all configurations. |
| 2353 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;MFS_CHECKED' since the value of 'MFS_CHECKED' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 2395 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;MFS_CHECKED' since the value of 'MFS_CHECKED' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/ui/graphics.c |
| 1071 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;ILC_COLOR;ILC_COLOR16' since the value of 'ILC_COLOR16' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| 1689 | unreadVariable | 563 | style | Variable 'sf' is assigned a value that is never used. |
| gate/ui/listviews_gtk.c |
| 228 | duplicateBreak | 561 | style | Consecutive return, break, continue, goto or throw statements are unnecessary. |
| 442 | variableScope | 398 | style | The scope of the variable 'item_data' can be reduced. |
| 1062 | redundantAssignment | 563 | style | Variable 'ret' is reassigned a value before the old one has been used. |
| gate/ui/splitters.c |
| 502 | unreadVariable | 563 | style | Variable 'container' is assigned a value that is never used. |
| gate/ui/statusbars.c |
| 360 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;SBT_TOOLTIPS' since the value of 'SBT_TOOLTIPS' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/ui/tests/gateui_cpp_test/gateui_cpp_tests.cpp |
| 345 | unreadVariable | 563 | style | Variable 'ndx' is assigned a value that is never used. |
| 571 | unreadVariable | 563 | style | Variable 'index2' is assigned a value that is never used. |
| gate/ui/textboxes.c |
| 113 | knownConditionTrueFalse | 570 | style | Condition 'wParam==VK_TAB' is always false |
| gate/ui/toolbars.c |
| 79 | unusedStructMember | 563 | style | struct member 'TBBUTTONINFO::iImage' is never used. |
| 85 | unusedStructMember | 563 | style | struct member 'TBBUTTONINFO::cchText' is never used. |
| 376 | ConfigurationNotChecked | | information | Skipping configuration 'GATE_UI_WINAPI;ILC_COLOR;ILC_COLOR16' since the value of 'ILC_COLOR16' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly. |
| gate/ui/treeviews.c |
| 1044 | shadowVar | 398 | style | Local variable value shadows outer variable |