| 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. |
| 928 | 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/vast/vdb/vdb.cpp |
| 512 | 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 |
| 1736 | 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 21 configurations. Use --force to check all configurations. |
| gate/cxx_files.cpp |
| 615 | uninitMemberVar | 398 | warning | Member variable 'File_find_dispatcher_param::ptr_cb' is not initialized in the constructor. |
| 615 | uninitMemberVar | 398 | warning | Member variable 'File_find_dispatcher_param::user_param' is not initialized in the constructor. |
| 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/passwords.c |
| 114 | variableScope | 398 | style | The scope of the variable 'ptr_hash' can be reduced. |
| 172 | variableScope | 398 | style | The scope of the variable 'ptr_hash' can be reduced. |
| 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/texts.c |
| 1478 | redundantAssignment | 563 | style | Variable 'ptr_text' is reassigned a value before the old one has been used. |
| 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 |
| 277 | unusedStructMember | 563 | style | union member 'x86_arguments::function_ptr' is never used. |
| 498 | 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. |
| 504 | 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. |
| 507 | 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. |
| 518 | 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. |
| 526 | 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. |
| 529 | 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 50 configurations. Use --force to check all configurations. |
| 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. |
| gate/io/serialports.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 17 configurations. Use --force to check all configurations. |
| 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/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/sockettools.c |
| 124 | variableScope | 398 | style | The scope of the variable 'pipe_fd' can be reduced. |
| 125 | variableScope | 398 | style | The scope of the variable 'result' can be reduced. |
| gate/net/sshclients.c |
| 563 | redundantAssignment | 563 | style | Variable 'client->handles[2]' 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/wasm/wasm_gate.c |
| 1000 | knownConditionTrueFalse | 571 | style | Condition 'fd>=0' is always true |
| 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_posix.c |
| 0 | toomanyconfigs | 398 | information | Too many #ifdef configurations - cppcheck only checks 12 of 16 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/ui/comboboxes.c |
| 824 | unreadVariable | 563 | style | Variable 'ctrl' is assigned a value that is never used. |
| gate/ui/forms.c |
| 735 | 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. |
| 831 | 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. |
| 1965 | knownConditionTrueFalse | 570 | style | Condition 'w_owner' is always false |
| 1994 | 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. |
| 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/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 |
| 723 | unreadVariable | 563 | style | Variable 'hitem' is assigned a value that is never used. |
| 741 | unusedVariable | 563 | style | Unused variable: nmtv |