2024-04-22 14:43 ftp://ftp.de.debian.org/debian/pool/main/t/tgl/tgl_2.0.1+git20160323.ffb04cac.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 532 532 elapsed-time: 29.1 28.9 head-timing-info: old-timing-info: head results: tgl/auto-static-store.c:107:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgl/auto-static-store.c:253:57: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/tools.h:63:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/tools.h:69:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/tools.h:123:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/mtproto-common.h:307:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bool_true [valueFlowBailoutIncompleteVar] tgl/mtproto-common.h:157:4: portability: Casting between signed int * and double * which have an incompatible binary data representation. [invalidPointerCast] tgl/mtproto-common.h:337:15: portability: Casting between signed int * and double * which have an incompatible binary data representation. [invalidPointerCast] tgl/auto-static.c:178:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.h:225:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] tgl/mtproto-common.h:241:9: style: Variable 'r' can be declared as pointer to const [constVariablePointer] tgl/mtproto-common.h:351:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] tgl/tools.h:75:38: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.h:353:17: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/mtproto-common.h:353:23: portability: 'buf+256' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/binlog.c:541:37: style: Condition 'P->encr_chat.exchange_state!=tgl_sce_committed' is always true [knownConditionTrueFalse] tgl/binlog.c:540:35: note: Assignment 'P->encr_chat.exchange_state=tgl_sce_none', assigned value is 0 tgl/binlog.c:541:37: note: Condition 'P->encr_chat.exchange_state!=tgl_sce_committed' is always true tgl/binlog.c:548:37: style: Condition 'P->encr_chat.exchange_state==tgl_sce_committed' is always false [knownConditionTrueFalse] tgl/binlog.c:547:35: note: Assignment 'P->encr_chat.exchange_state=tgl_sce_none', assigned value is 0 tgl/binlog.c:548:37: note: Condition 'P->encr_chat.exchange_state==tgl_sce_committed' is always false tgl/binlog.c:97:50: style:inconclusive: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. [funcArgNamesDifferent] tgl/tgl-binlog.h:34:50: note: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. tgl/binlog.c:97:50: note: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. tgl/binlog.c:104:73: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:132:74: style: Parameter 'prime' can be declared as const array [constParameter] tgl/binlog.c:277:86: style: Parameter 'from_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:277:132: style: Parameter 'fwd_from_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:277:165: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:277:286: style: Parameter 'reply_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:381:91: style: Parameter 'from_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:381:115: style: Parameter 'to_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:381:127: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:508:84: style: Parameter 'exchange_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:508:119: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:559:60: style: Parameter 'access_hash' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:559:313: style: Parameter 'last_read_in' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:559:332: style: Parameter 'last_read_out' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:673:88: style: Parameter 'user_num' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:673:103: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:673:114: style: Parameter 'version' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:673:227: style: Parameter 'admin' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:673:239: style: Parameter 'last_read_in' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:673:258: style: Parameter 'last_read_out' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:65: style: Parameter 'access_hash' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:83: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:94: style: Parameter 'admin' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:106: style: Parameter 'user_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:121: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:132: style: Parameter 'g_key' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:145: style: Parameter 'first_key_id' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:164: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:198: style: Parameter 'in_seq_no' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:214: style: Parameter 'last_in_seq_no' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:235: style: Parameter 'out_seq_no' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:787:258: style: Parameter 'key_fingerprint' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:63: style: Parameter 'access_hash' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:81: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:245: style: Parameter 'about' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:272: style: Parameter 'participants_count' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:297: style: Parameter 'admins_count' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:316: style: Parameter 'kicked_count' can be declared as pointer to const [constParameterPointer] tgl/binlog.c:904:335: style: Parameter 'last_read_in' can be declared as pointer to const [constParameterPointer] tgl/crypto/aes_openssl.c:34:92: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tgl/crypto/aes_openssl.c:39:92: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:39:37: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:47:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:51:35: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:59:103: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:67:68: style: Parameter 'ret' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:71:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:83:28: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:88:27: style: Parameter 'dv' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:88:40: style: Parameter 'rem' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:88:94: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:92:31: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] tgl/crypto/bn_openssl.c:92:101: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] tgl/crypto/rsa_pem_openssl.c:52:1: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tgl/crypto/rsa_pem_openssl.c:53:1: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tgl/crypto/rsa_pem_openssl.c:55:31: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgl/generate.c:272:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:324:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:401:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:477:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:546:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:630:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:716:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:786:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:877:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:955:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:1039:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:1136:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:1165:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] tgl/generate.c:2038:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS_EXPR_NAT [valueFlowBailoutIncompleteVar] tgl/generate.c:2057:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/generate.c:2082:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/generate.c:2103:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/generate.c:2122:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/generate.c:2144:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS_ARG_V2 [valueFlowBailoutIncompleteVar] tgl/generate.c:2184:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgl/generate.c:2193:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS_COMBINATOR_RIGHT_V2 [valueFlowBailoutIncompleteVar] tgl/generate.c:2202:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS_COMBINATOR_LEFT_BUILTIN [valueFlowBailoutIncompleteVar] tgl/generate.c:2832:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS_SCHEMA_V2 [valueFlowBailoutIncompleteVar] tgl/generate.c:3024:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] tgl/generate.c:2144:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] tgl/generate.c:2193:11: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] tgl/generate.c:2258:11: warning: Assert statement calls a function which may have desired side effects: 'read_combinator_left'. [assertWithSideEffect] tgl/generate.c:2259:11: warning: Assert statement calls a function which may have desired side effects: 'read_combinator_right'. [assertWithSideEffect] tgl/generate.c:2832:11: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] tgl/generate.c:2851:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] tgl/generate.c:2864:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] tgl/generate.c:2865:13: warning: Assert statement calls a function which may have desired side effects: 'read_combinators'. [assertWithSideEffect] tgl/generate.c:2878:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] tgl/generate.c:76:1: style:inconclusive: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/generate.c:76:1: note: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. tgl/generate.c:76:1: note: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. tgl/generate.c:77:1: style:inconclusive: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/generate.c:77:1: note: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. tgl/generate.c:77:1: note: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. tgl/generate.c:76:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:77:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:102:25: style: Variable 'c' can be declared as pointer to const [constVariablePointer] tgl/generate.c:202:40: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:206:41: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:210:45: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:214:43: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:218:44: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/generate.c:266:38: style: Parameter 'var_num' can be declared as pointer to const [constParameterPointer] tgl/generate.c:287:19: style: Variable 'T' can be declared as pointer to const [constVariablePointer] tgl/generate.c:332:9: style: Variable 'fail' can be declared as pointer to const [constVariablePointer] tgl/generate.c:1436:19: style: Variable 'T' can be declared as pointer to const [constVariablePointer] tgl/generate.c:1641:37: style: Parameter 't' can be declared as pointer to const [constParameterPointer] tgl/generate.c:1964:48: style: Parameter 't' can be declared as pointer to const [constParameterPointer] tgl/generate.c:2563:35: style: Variable 'd' can be declared as pointer to const [constVariablePointer] tgl/generate.c:2990:28: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/generate.c:355:7: style: Variable 'y' is assigned a value that is never used. [unreadVariable] tgl/generate.c:359:7: style: Variable 'y' is assigned a value that is never used. [unreadVariable] tgl/mtproto-client.c:362:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:427:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:557:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:828:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_vector [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:1163:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:1293:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTCONN [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:1314:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_vector [valueFlowBailoutIncompleteVar] tgl/mtproto-client.c:370:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:383:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:476:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:786:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:812:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:827:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:828:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:841:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:853:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:876:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:887:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:894:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:903:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:911:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/mtproto-client.c:1111:23: style: The statement 'if (DC->server_salt!=enc->server_salt) DC->server_salt=enc->server_salt' is logically equivalent to 'DC->server_salt=enc->server_salt'. [duplicateConditionalAssign] tgl/mtproto-client.c:1112:21: note: Assignment 'DC->server_salt=enc->server_salt' tgl/mtproto-client.c:1111:23: note: Condition 'DC->server_salt!=enc->server_salt' is redundant tgl/mtproto-client.c:1309:1: style:inconclusive: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/mtproto-client.c:1309:1: note: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. tgl/mtproto-client.c:1309:1: note: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. tgl/mtproto-client.c:1425:76: style:inconclusive: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. [funcArgNamesDifferent] tgl/mtproto-client.h:53:76: note: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. tgl/mtproto-client.c:1425:76: note: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. tgl/mtproto-client.c:126:73: style: Parameter 'DC' can be declared as pointer to const [constParameterPointer] tgl/mtproto-client.c:672:47: style: Parameter 'DC' can be declared as pointer to const [constParameterPointer] tgl/mtproto-client.c:708:53: style: Parameter 'DC' can be declared as pointer to const [constParameterPointer] tgl/mtproto-client.c:731:89: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] tgl/mtproto-client.c:760:81: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] tgl/mtproto-client.c:141:15: style: struct member 'Anonymous1::auth_key_id' is never used. [unusedStructMember] tgl/mtproto-common.c:69:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tgl/mtproto-common.c:155:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tgl/mtproto-common.c:175:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.c:279:104: style: Parameter 'N' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.c:279:116: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.c:307:104: style: Parameter 'N' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.c:307:116: style: Parameter 'D' can be declared as pointer to const [constParameterPointer] tgl/mtproto-common.c:364:30: style: Parameter 'auth_key' can be declared as const array [constParameter] tgl/mtproto-common.c:364:50: style: Parameter 'msg_key' can be declared as const array [constParameter] tgl/mtproto-utils.c:134:9: style: Local variable 'q' shadows outer argument [shadowArgument] tgl/mtproto-utils.c:124:53: note: Shadowed declaration tgl/mtproto-utils.c:134:9: note: Shadow variable tgl/mtproto-utils.c:12:57: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgl/mtproto-utils.c:76:54: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgl/mtproto-utils.c:76:66: style: Parameter 'g_a' can be declared as pointer to const [constParameterPointer] tgl/mtproto-utils.c:97:44: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] tgl/queries-encrypted.c:632:63: error: There is an unknown macro here somewhere. Configuration is required. If INT64_PRINTF_MODIFIER is a macro then please configure it. [unknownMacro] tgl/queries.c:506:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_invoke_with_layer [valueFlowBailoutIncompleteVar] tgl/queries.c:559:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:567:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:575:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:100:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_decrypted_message_action_notify_layer [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_decrypted_message_action_set_message_t_t_l [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:173:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_encrypted_service [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:244:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_encrypted [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:303:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_read_encrypted_history [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:336:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_encrypted_file [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:451:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_decrypted_message_media_geo_point [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:588:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_accept_encryption [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:691:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_request_encryption [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:741:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_discard_encryption [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:750:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_dh_config [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:789:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_get_dh_config [valueFlowBailoutIncompleteVar] tgl/queries-encrypted.c:800:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_get_dh_config [valueFlowBailoutIncompleteVar] tgl/queries.c:610:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_vector [valueFlowBailoutIncompleteVar] tgl/queries.c:833:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_help_get_config [valueFlowBailoutIncompleteVar] tgl/queries.c:840:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_help_get_config [valueFlowBailoutIncompleteVar] tgl/queries.c:850:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bool_true [valueFlowBailoutIncompleteVar] tgl/queries.c:871:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_send_code [valueFlowBailoutIncompleteVar] tgl/queries.c:901:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_send_call [valueFlowBailoutIncompleteVar] tgl/queries.c:926:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:942:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_sign_in [valueFlowBailoutIncompleteVar] tgl/queries.c:952:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_sign_up [valueFlowBailoutIncompleteVar] tgl/queries.c:964:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_import_bot_authorization [valueFlowBailoutIncompleteVar] tgl/queries.c:1002:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_get_contacts [valueFlowBailoutIncompleteVar] tgl/queries.c:1036:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:1065:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_message [valueFlowBailoutIncompleteVar] tgl/queries.c:1144:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:1236:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:1258:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tgl/queries.c:1295:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:1363:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:1395:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_read_history [valueFlowBailoutIncompleteVar] tgl/queries.c:1430:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:1499:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_messages [valueFlowBailoutIncompleteVar] tgl/queries.c:1518:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:1540:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:1581:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_get_history [valueFlowBailoutIncompleteVar] tgl/queries.c:1723:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:1748:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_get_dialogs [valueFlowBailoutIncompleteVar] tgl/queries.c:1793:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_peer_chat [valueFlowBailoutIncompleteVar] tgl/queries.c:1825:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:1860:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_edit_chat_photo [valueFlowBailoutIncompleteVar] tgl/queries.c:1907:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_media [valueFlowBailoutIncompleteVar] tgl/queries.c:2028:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_upload_save_file_part [valueFlowBailoutIncompleteVar] tgl/queries.c:2073:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_upload_save_file_part [valueFlowBailoutIncompleteVar] tgl/queries.c:2082:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tgl/queries.c:2197:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2251:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_profile [valueFlowBailoutIncompleteVar] tgl/queries.c:2260:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_username [valueFlowBailoutIncompleteVar] tgl/queries.c:2301:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_resolve_username [valueFlowBailoutIncompleteVar] tgl/queries.c:2351:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:2383:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2474:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2511:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2544:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2565:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2655:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_media [valueFlowBailoutIncompleteVar] tgl/queries.c:2682:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2706:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_edit_chat_title [valueFlowBailoutIncompleteVar] tgl/queries.c:2718:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_edit_title [valueFlowBailoutIncompleteVar] tgl/queries.c:2732:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_join_channel [valueFlowBailoutIncompleteVar] tgl/queries.c:2745:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_leave_channel [valueFlowBailoutIncompleteVar] tgl/queries.c:2772:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_edit_about [valueFlowBailoutIncompleteVar] tgl/queries.c:2785:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_update_username [valueFlowBailoutIncompleteVar] tgl/queries.c:2798:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_edit_admin [valueFlowBailoutIncompleteVar] tgl/queries.c:2852:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable user_id [valueFlowBailoutIncompleteVar] tgl/queries.c:2867:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:2888:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_get_participants [valueFlowBailoutIncompleteVar] tgl/queries.c:2944:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:2985:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:3025:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:3062:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_users_get_full_user [valueFlowBailoutIncompleteVar] tgl/queries.c:3118:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] tgl/queries.c:3171:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:3236:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_upload_get_file [valueFlowBailoutIncompleteVar] tgl/queries.c:3282:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:3305:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:3349:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_document_file_location [valueFlowBailoutIncompleteVar] tgl/queries.c:3357:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_video_file_location [valueFlowBailoutIncompleteVar] tgl/queries.c:3365:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_audio_file_location [valueFlowBailoutIncompleteVar] tgl/queries.c:3429:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_import_authorization [valueFlowBailoutIncompleteVar] tgl/queries.c:3445:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_export_authorization [valueFlowBailoutIncompleteVar] tgl/queries.c:3485:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_import_contacts [valueFlowBailoutIncompleteVar] tgl/queries.c:3517:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:3587:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_messages [valueFlowBailoutIncompleteVar] tgl/queries.c:3604:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:3626:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_search_global [valueFlowBailoutIncompleteVar] tgl/queries.c:3650:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:3707:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_difference_empty [valueFlowBailoutIncompleteVar] tgl/queries.c:3805:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_get_state [valueFlowBailoutIncompleteVar] tgl/queries.c:3825:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_get_difference [valueFlowBailoutIncompleteVar] tgl/queries.c:3848:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_channel_difference_empty [valueFlowBailoutIncompleteVar] tgl/queries.c:3925:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_get_channel_difference [valueFlowBailoutIncompleteVar] tgl/queries.c:3957:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_add_chat_user [valueFlowBailoutIncompleteVar] tgl/queries.c:3971:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_delete_chat_user [valueFlowBailoutIncompleteVar] tgl/queries.c:3987:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_invite_to_channel [valueFlowBailoutIncompleteVar] tgl/queries.c:4003:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_kick_from_channel [valueFlowBailoutIncompleteVar] tgl/queries.c:4024:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4039:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_create_chat [valueFlowBailoutIncompleteVar] tgl/queries.c:4065:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_create_channel [valueFlowBailoutIncompleteVar] tgl/queries.c:4116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:4138:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4196:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_export_card [valueFlowBailoutIncompleteVar] tgl/queries.c:4221:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_import_card [valueFlowBailoutIncompleteVar] tgl/queries.c:4231:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_start_bot [valueFlowBailoutIncompleteVar] tgl/queries.c:4261:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_set_typing [valueFlowBailoutIncompleteVar] tgl/queries.c:4372:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tgl/queries.c:4396:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4447:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4469:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_import_chat_invite [valueFlowBailoutIncompleteVar] tgl/queries.c:4481:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4531:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:4555:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_password_settings [valueFlowBailoutIncompleteVar] tgl/queries.c:4675:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_no_password [valueFlowBailoutIncompleteVar] tgl/queries.c:4694:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_get_password [valueFlowBailoutIncompleteVar] tgl/queries.c:4708:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:4748:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_check_password [valueFlowBailoutIncompleteVar] tgl/queries.c:4773:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] tgl/queries.c:4783:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_no_password [valueFlowBailoutIncompleteVar] tgl/queries.c:4813:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_get_password [valueFlowBailoutIncompleteVar] tgl/queries.c:4831:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_media_empty [valueFlowBailoutIncompleteVar] tgl/queries.c:4894:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4912:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgl/queries.c:4982:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_help_get_terms_of_service [valueFlowBailoutIncompleteVar] tgl/queries.c:4991:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_migrate_chat [valueFlowBailoutIncompleteVar] tgl/queries.c:5030:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_bind_temp_auth_key [valueFlowBailoutIncompleteVar] tgl/queries.c:5055:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_status [valueFlowBailoutIncompleteVar] tgl/queries.c:5414:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_change_phone [valueFlowBailoutIncompleteVar] tgl/queries.c:5447:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_send_change_phone_code [valueFlowBailoutIncompleteVar] tgl/queries.c:311:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/queries.c:317:5: warning: Either the condition '!q' is redundant or there is possible null pointer dereference: q. [nullPointerRedundantCheck] tgl/queries.c:316:7: note: Assuming that condition '!q' is not redundant tgl/queries.c:317:5: note: Null pointer dereference tgl/queries.c:119:1: style:inconclusive: Function 'tree_get_min_query' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/queries.c:119:1: note: Function 'tree_get_min_query' argument 1 names different: declaration 't' definition 'T'. tgl/queries.c:119:1: note: Function 'tree_get_min_query' argument 1 names different: declaration 't' definition 'T'. tgl/queries.c:261:78: style:inconclusive: Function 'tglq_send_query' argument 3 names different: declaration 'len' definition 'ints'. [funcArgNamesDifferent] tgl/queries.h:58:78: note: Function 'tglq_send_query' argument 3 names different: declaration 'len' definition 'ints'. tgl/queries.c:261:78: note: Function 'tglq_send_query' argument 3 names different: declaration 'len' definition 'ints'. tgl/queries.c:1230:69: style:inconclusive: Function 'tgl_do_reply_message' argument 2 names different: declaration 'msg_id' definition '_reply_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:27:69: note: Function 'tgl_do_reply_message' argument 2 names different: declaration 'msg_id' definition '_reply_id'. tgl/queries.c:1230:69: note: Function 'tgl_do_reply_message' argument 2 names different: declaration 'msg_id' definition '_reply_id'. tgl/queries.c:1257:61: style:inconclusive: Function 'tgl_do_send_text' argument 2 names different: declaration 'peer_id' definition 'id'. [funcArgNamesDifferent] tgl/tgl-queries.h:30:61: note: Function 'tgl_do_send_text' argument 2 names different: declaration 'peer_id' definition 'id'. tgl/queries.c:1257:61: note: Function 'tgl_do_send_text' argument 2 names different: declaration 'peer_id' definition 'id'. tgl/queries.c:1289:66: style:inconclusive: Function 'tgl_do_reply_text' argument 2 names different: declaration 'msg_id' definition '_reply_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:32:66: note: Function 'tgl_do_reply_text' argument 2 names different: declaration 'msg_id' definition '_reply_id'. tgl/queries.c:1289:66: note: Function 'tgl_do_reply_text' argument 2 names different: declaration 'msg_id' definition '_reply_id'. tgl/queries.c:2191:70: style:inconclusive: Function 'tgl_do_reply_document' argument 2 names different: declaration 'msg_id' definition '_reply_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:38:70: note: Function 'tgl_do_reply_document' argument 2 names different: declaration 'msg_id' definition '_reply_id'. tgl/queries.c:2191:70: note: Function 'tgl_do_reply_document' argument 2 names different: declaration 'msg_id' definition '_reply_id'. tgl/queries.c:2381:76: style:inconclusive: Function 'tgl_do_forward_messages' argument 3 names different: declaration 'size' definition 'n'. [funcArgNamesDifferent] tgl/tgl-queries.h:46:84: note: Function 'tgl_do_forward_messages' argument 3 names different: declaration 'size' definition 'n'. tgl/queries.c:2381:76: note: Function 'tgl_do_forward_messages' argument 3 names different: declaration 'size' definition 'n'. tgl/queries.c:2381:103: style:inconclusive: Function 'tgl_do_forward_messages' argument 4 names different: declaration 'msg_ids' definition '_ids'. [funcArgNamesDifferent] tgl/tgl-queries.h:46:114: note: Function 'tgl_do_forward_messages' argument 4 names different: declaration 'msg_ids' definition '_ids'. tgl/queries.c:2381:103: note: Function 'tgl_do_forward_messages' argument 4 names different: declaration 'msg_ids' definition '_ids'. tgl/queries.c:2468:67: style:inconclusive: Function 'tgl_do_forward_message' argument 2 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:42:75: note: Function 'tgl_do_forward_message' argument 2 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:2468:67: note: Function 'tgl_do_forward_message' argument 2 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:2468:94: style:inconclusive: Function 'tgl_do_forward_message' argument 3 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:42:97: note: Function 'tgl_do_forward_message' argument 3 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:2468:94: note: Function 'tgl_do_forward_message' argument 3 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:2538:69: style:inconclusive: Function 'tgl_do_reply_contact' argument 2 names different: declaration 'reply_id' definition '_reply_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:53:69: note: Function 'tgl_do_reply_contact' argument 2 names different: declaration 'reply_id' definition '_reply_id'. tgl/queries.c:2538:69: note: Function 'tgl_do_reply_contact' argument 2 names different: declaration 'reply_id' definition '_reply_id'. tgl/queries.c:2563:65: style:inconclusive: Function 'tgl_do_forward_media' argument 2 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:59:65: note: Function 'tgl_do_forward_media' argument 2 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:2563:65: note: Function 'tgl_do_forward_media' argument 2 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:2563:92: style:inconclusive: Function 'tgl_do_forward_media' argument 3 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:59:87: note: Function 'tgl_do_forward_media' argument 3 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:2563:92: note: Function 'tgl_do_forward_media' argument 3 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:2649:65: style:inconclusive: Function 'tgl_do_send_location' argument 2 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:62:65: note: Function 'tgl_do_send_location' argument 2 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:2649:65: note: Function 'tgl_do_send_location' argument 2 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:2676:70: style:inconclusive: Function 'tgl_do_reply_location' argument 2 names different: declaration 'reply_id' definition '_reply_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:65:70: note: Function 'tgl_do_reply_location' argument 2 names different: declaration 'reply_id' definition '_reply_id'. tgl/queries.c:2676:70: note: Function 'tgl_do_reply_location' argument 2 names different: declaration 'reply_id' definition '_reply_id'. tgl/queries.c:2704:79: style:inconclusive: Function 'tgl_do_rename_chat' argument 3 names different: declaration 'new_title' definition 'name'. [funcArgNamesDifferent] tgl/tgl-queries.h:98:79: note: Function 'tgl_do_rename_chat' argument 3 names different: declaration 'new_title' definition 'name'. tgl/queries.c:2704:79: note: Function 'tgl_do_rename_chat' argument 3 names different: declaration 'new_title' definition 'name'. tgl/queries.c:2704:89: style:inconclusive: Function 'tgl_do_rename_chat' argument 4 names different: declaration 'new_title_len' definition 'name_len'. [funcArgNamesDifferent] tgl/tgl-queries.h:98:94: note: Function 'tgl_do_rename_chat' argument 4 names different: declaration 'new_title_len' definition 'name_len'. tgl/queries.c:2704:89: note: Function 'tgl_do_rename_chat' argument 4 names different: declaration 'new_title_len' definition 'name_len'. tgl/queries.c:3280:82: style:inconclusive: Function 'tgl_do_load_file_location' argument 2 names different: declaration 'FL' definition 'P'. [funcArgNamesDifferent] tgl/tgl-queries.h:259:82: note: Function 'tgl_do_load_file_location' argument 2 names different: declaration 'FL' definition 'P'. tgl/queries.c:3280:82: note: Function 'tgl_do_load_file_location' argument 2 names different: declaration 'FL' definition 'P'. tgl/queries.c:3648:119: style:inconclusive: Function 'tgl_do_msg_search' argument 7 names different: declaration 'query' definition 'pattern'. [funcArgNamesDifferent] tgl/tgl-queries.h:269:127: note: Function 'tgl_do_msg_search' argument 7 names different: declaration 'query' definition 'pattern'. tgl/queries.c:3648:119: note: Function 'tgl_do_msg_search' argument 7 names different: declaration 'query' definition 'pattern'. tgl/queries.c:3648:132: style:inconclusive: Function 'tgl_do_msg_search' argument 8 names different: declaration 'query_len' definition 'pattern_len'. [funcArgNamesDifferent] tgl/tgl-queries.h:269:138: note: Function 'tgl_do_msg_search' argument 8 names different: declaration 'query_len' definition 'pattern_len'. tgl/queries.c:3648:132: note: Function 'tgl_do_msg_search' argument 8 names different: declaration 'query_len' definition 'pattern_len'. tgl/queries.c:4132:66: style:inconclusive: Function 'tgl_do_delete_msg' argument 2 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:272:66: note: Function 'tgl_do_delete_msg' argument 2 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:4132:66: note: Function 'tgl_do_delete_msg' argument 2 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:4390:67: style:inconclusive: Function 'tgl_do_get_message' argument 2 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:275:67: note: Function 'tgl_do_get_message' argument 2 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:4390:67: note: Function 'tgl_do_get_message' argument 2 names different: declaration 'msg_id' definition '_msg_id'. tgl/queries.c:4461:76: style:inconclusive: Function 'tgl_do_import_chat_link' argument 3 names different: declaration 'link_len' definition 'len'. [funcArgNamesDifferent] tgl/tgl-queries.h:122:76: note: Function 'tgl_do_import_chat_link' argument 3 names different: declaration 'link_len' definition 'len'. tgl/queries.c:4461:76: note: Function 'tgl_do_import_chat_link' argument 3 names different: declaration 'link_len' definition 'len'. tgl/queries.c:4692:155: style:inconclusive: Function 'tgl_do_set_password' argument 5 names different: declaration 'extra' definition 'callback_extra'. [funcArgNamesDifferent] tgl/tgl-queries.h:11:155: note: Function 'tgl_do_set_password' argument 5 names different: declaration 'extra' definition 'callback_extra'. tgl/queries.c:4692:155: note: Function 'tgl_do_set_password' argument 5 names different: declaration 'extra' definition 'callback_extra'. tgl/queries.c:4820:75: style:inconclusive: Function 'tgl_do_send_broadcast' argument 3 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] tgl/tgl-queries.h:69:75: note: Function 'tgl_do_send_broadcast' argument 3 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:4820:75: note: Function 'tgl_do_send_broadcast' argument 3 names different: declaration 'id' definition 'peer_id'. tgl/queries.c:5066:117: style:inconclusive: Function 'tgl_do_accept_exchange' argument 4 names different: declaration 'g_a' definition 'ga'. [funcArgNamesDifferent] tgl/queries.h:75:117: note: Function 'tgl_do_accept_exchange' argument 4 names different: declaration 'g_a' definition 'ga'. tgl/queries.c:5066:117: note: Function 'tgl_do_accept_exchange' argument 4 names different: declaration 'g_a' definition 'ga'. tgl/queries.c:5076:94: style:inconclusive: Function 'tgl_do_commit_exchange' argument 3 names different: declaration 'g_a' definition 'gb'. [funcArgNamesDifferent] tgl/queries.h:76:94: note: Function 'tgl_do_commit_exchange' argument 3 names different: declaration 'g_a' definition 'gb'. tgl/queries.c:5076:94: note: Function 'tgl_do_commit_exchange' argument 3 names different: declaration 'g_a' definition 'gb'. tgl/queries.c:1668:9: style: Local variable 'i' shadows outer variable [shadowVariable] tgl/queries.c:1640:7: note: Shadowed declaration tgl/queries.c:1668:9: note: Shadow variable tgl/queries.c:119:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/queries.c:402:24: style: Variable 'DC' can be declared as pointer to const [constVariablePointer] tgl/queries.c:1108:34: style: Variable 'E' can be declared as pointer to const [constVariablePointer] tgl/queries.c:1142:17: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/queries.c:1230:69: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:1289:66: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:1428:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/queries.c:1579:15: style: Variable 'C' can be declared as pointer to const [constVariablePointer] tgl/queries.c:1698:29: style: Variable 'M' can be declared as pointer to const [constVariablePointer] tgl/queries.c:1790:44: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/queries.c:1857:71: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] tgl/queries.c:2175:11: style: Variable 'mime_type' can be declared as pointer to const [constVariablePointer] tgl/queries.c:2191:70: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:2468:94: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:2538:69: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:2563:92: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:2676:70: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:3338:11: style: Variable 'r' can be declared as pointer to const [constVariablePointer] tgl/queries.c:3384:11: style: Variable 'r' can be declared as pointer to const [constVariablePointer] tgl/queries.c:4022:15: style: Variable 'U' can be declared as pointer to const [constVariablePointer] tgl/queries.c:4132:66: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:4219:64: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] tgl/queries.c:4390:67: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5028:113: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5035:17: style: Variable 'q' can be declared as pointer to const [constVariablePointer] tgl/queries.c:5061:49: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5061:78: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5066:48: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5066:77: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5066:117: style: Parameter 'ga' can be declared as const array [constParameter] tgl/queries.c:5071:49: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5071:78: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5076:48: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5076:77: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5076:94: style: Parameter 'gb' can be declared as const array [constParameter] tgl/queries.c:5081:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/queries.c:5081:76: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/queries-encrypted.c:7:65: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] tgl/queries-encrypted.c:137:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/queries-encrypted.c:284:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/queries-encrypted.c:461:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/queries-encrypted.c:497:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/queries-encrypted.c:561:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tgl/queries.c:2188:46: error: Uninitialized variables: x.peer_type, x.access_hash [uninitvar] tgl/queries.c:2188:46: error: Uninitialized struct member: x.peer_type [uninitStructMember] tgl/queries.c:2188:46: error: Uninitialized struct member: x.access_hash [uninitStructMember] tgl/queries.c:1625:7: style: struct member 'get_dialogs_extra::max_id' is never used. [unusedStructMember] tgl/queries.c:3081:7: style: struct member 'download::next' is never used. [unusedStructMember] tgl/queries.c:5369:9: style: struct member 'change_phone_extra::first_name' is never used. [unusedStructMember] tgl/queries.c:5370:9: style: struct member 'change_phone_extra::last_name' is never used. [unusedStructMember] tgl/queries.c:5373:7: style: struct member 'change_phone_extra::first_name_len' is never used. [unusedStructMember] tgl/queries.c:5374:7: style: struct member 'change_phone_extra::last_name_len' is never used. [unusedStructMember] tgl/structures.c:276:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_user_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:373:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bool_true [valueFlowBailoutIncompleteVar] tgl/structures.c:415:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_encrypted_chat_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:514:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_chat_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:593:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channel_full [valueFlowBailoutIncompleteVar] tgl/structures.c:808:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_photo_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:844:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_video_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:879:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_audio_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:941:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_document_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:1154:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_media_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:1227:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_media_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:1521:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:1737:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tgl/structures.c:1817:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_encrypted_file_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:1916:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bot_info_empty [valueFlowBailoutIncompleteVar] tgl/structures.c:1128:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] tgl/structures.c:1569:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] tgl/structures.c:1700:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] tgl/structures.c:1735:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/structures.c:1745:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] tgl/structures.c:2340:11: style: Condition 'N' is always true [knownConditionTrueFalse] tgl/structures.c:2341:11: style: Condition 'NP' is always false [knownConditionTrueFalse] tgl/structures.c:2337:32: note: Assignment 'NP=0', assigned value is 0 tgl/structures.c:2341:11: note: Condition 'NP' is always false tgl/structures.c:82:1: style:inconclusive: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:82:1: note: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:82:1: note: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:83:1: style:inconclusive: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:83:1: note: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:83:1: note: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:84:1: style:inconclusive: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:84:1: note: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:84:1: note: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:85:1: style:inconclusive: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:85:1: note: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:85:1: note: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:86:1: style:inconclusive: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:86:1: note: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:86:1: note: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:87:1: style:inconclusive: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:87:1: note: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:87:1: note: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:88:1: style:inconclusive: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:88:1: note: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:88:1: note: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:89:1: style:inconclusive: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/structures.c:89:1: note: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:89:1: note: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. tgl/structures.c:365:93: style:inconclusive: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. [funcArgNamesDifferent] tgl/tgl-fetch.h:26:93: note: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. tgl/structures.c:365:93: note: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. tgl/structures.c:1994:56: style:inconclusive: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. [funcArgNamesDifferent] tgl/tgl.h:372:56: note: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. tgl/structures.c:1994:56: note: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. tgl/structures.c:2002:56: style:inconclusive: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. [funcArgNamesDifferent] tgl/tgl.h:373:56: note: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. tgl/structures.c:2002:56: note: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. tgl/structures.c:2459:79: style:inconclusive: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. [funcArgNamesDifferent] tgl/tgl.h:282:79: note: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. tgl/structures.c:2459:79: note: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. tgl/structures.c:1595:19: style: Local variable 'to_id' shadows outer variable [shadowVariable] tgl/structures.c:1526:17: note: Shadowed declaration tgl/structures.c:1595:19: note: Shadow variable tgl/structures.c:52:47: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] tgl/structures.c:52:70: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] tgl/structures.c:58:45: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] tgl/structures.c:58:68: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] tgl/structures.c:64:44: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] tgl/structures.c:64:65: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] tgl/structures.c:70:50: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] tgl/structures.c:70:74: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] tgl/structures.c:76:48: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] tgl/structures.c:76:71: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] tgl/structures.c:82:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:83:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:84:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:85:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:86:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:87:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:88:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:89:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] tgl/structures.c:119:17: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/structures.c:130:77: style: Parameter 'DS_SMA' can be declared as pointer to const [constParameterPointer] tgl/structures.c:168:53: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:619:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/structures.c:1626:8: style: Variable 'msg_key' can be declared as pointer to const [constVariablePointer] tgl/structures.c:1636:8: style: Variable 'e_key' can be declared as pointer to const [constVariablePointer] tgl/structures.c:1833:40: style: Parameter 'M1' can be declared as pointer to const [constParameterPointer] tgl/structures.c:1833:64: style: Parameter 'M2' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2366:82: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2459:79: style: Parameter 'msg_id' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2484:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2498:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2512:50: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2526:52: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2540:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2554:49: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] tgl/structures.c:2469:20: warning: Uninitialized variables: *msg_id.peer_id, *msg_id.access_hash [uninitvar] tgl/structures.c:1397:55: note: Calling function 'tgl_message_get', 2nd argument '&id' value is tgl/structures.c:2466:7: note: Assuming condition is false tgl/structures.c:2469:20: note: Uninitialized variables: *msg_id.peer_id, *msg_id.access_hash tgl/tg-mime-types.c:29:24: style:inconclusive: Redundant condition: The condition '*c != '\n'' is redundant since '*c > ' '' is sufficient. [redundantCondition] tgl/tg-mime-types.c:31:23: style:inconclusive: Redundant condition: The condition '*c != '\n'' is redundant since '*c > ' '' is sufficient. [redundantCondition] tgl/tg-mime-types.c:46:25: style:inconclusive: Redundant condition: The condition '*c != '\n'' is redundant since '*c > ' '' is sufficient. [redundantCondition] tgl/tgl-net.c:270:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgl/tgl-net.c:324:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgl/tgl-net.c:371:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgl/tgl-net.c:443:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgl/tgl-net.c:522:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgl/tgl-net.c:351:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] tgl/tgl-net.c:389:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] tgl/tgl-net.c:476:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] tgl/tgl-net.c:481:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] tgl/tgl-net.c:128:55: style:inconclusive: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] tgl/tgl-net-inner.h:70:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. tgl/tgl-net.c:128:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. tgl/tgl-net.c:165:47: style:inconclusive: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] tgl/tgl-net-inner.h:72:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. tgl/tgl-net.c:165:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. tgl/tgl-net.c:197:54: style:inconclusive: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] tgl/tgl-net-inner.h:73:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. tgl/tgl-net.c:197:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. tgl/tgl-net.c:222:41: style: Parameter 'c' can be declared as pointer to const. However it seems that 'tgln_flush_out' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgl/tgl-net.c:578:16: note: You might need to cast the function pointer here tgl/tgl-net.c:222:41: note: Parameter 'c' can be declared as pointer to const tgl/tgl-net.c:542:50: style: Parameter 'c' can be declared as pointer to const. However it seems that 'get_dc' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgl/tgl-net.c:580:13: note: You might need to cast the function pointer here tgl/tgl-net.c:542:50: note: Parameter 'c' can be declared as pointer to const tgl/tgl-net.c:546:60: style: Parameter 'c' can be declared as pointer to const. However it seems that 'get_session' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgl/tgl-net.c:581:18: note: You might need to cast the function pointer here tgl/tgl-net.c:546:60: note: Parameter 'c' can be declared as pointer to const tgl/tgl.c:56:75: style: Parameter 'cb' can be declared as pointer to const [constParameterPointer] tgl/tools.c:99:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] tgl/tools.c:238:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] tgl/tools.c:169:14: warning: Either the condition 'ptr' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] tgl/tools.c:170:7: note: Assuming that condition 'ptr' is not redundant tgl/tools.c:169:14: note: Null pointer dereference tgl/tools.c:297:32: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] tgl/tools.c:135:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:140:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:140:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:141:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:142:32: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:142:36: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:142:46: portability: 'ptr+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:150:16: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:150:20: portability: 'p+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:150:30: portability: 'p+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:190:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:191:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:191:24: portability: 'p+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:192:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:192:26: portability: 'p+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:192:30: portability: 'p+8+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:196:12: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:260:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:261:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:261:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:262:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:262:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:262:38: portability: 'ptr+8+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:272:25: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:272:29: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:273:22: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:273:35: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:273:39: portability: 'ptr+8+l' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:283:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:288:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:288:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:289:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:290:32: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:290:36: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/tools.c:290:46: portability: 'ptr+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgl/updates.c:167:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_peer_channel [valueFlowBailoutIncompleteVar] tgl/updates.c:791:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tgl/updates.c:640:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] tgl/updates.c:632:18: note: Assuming that condition 'check_only>0' is not redundant tgl/updates.c:636:19: note: Assuming condition is false tgl/updates.c:640:18: note: Condition 'check_only>0' is always false tgl/updates.c:647:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] tgl/updates.c:632:18: note: Assuming that condition 'check_only>0' is not redundant tgl/updates.c:636:19: note: Assuming condition is false tgl/updates.c:647:18: note: Condition 'check_only>0' is always false tgl/updates.c:669:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] tgl/updates.c:661:18: note: Assuming that condition 'check_only>0' is not redundant tgl/updates.c:665:19: note: Assuming condition is false tgl/updates.c:669:18: note: Condition 'check_only>0' is always false tgl/updates.c:676:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] tgl/updates.c:661:18: note: Assuming that condition 'check_only>0' is not redundant tgl/updates.c:665:19: note: Assuming condition is false tgl/updates.c:676:18: note: Condition 'check_only>0' is always false tgl/updates.c:799:1: style:inconclusive: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] tgl/updates.c:799:1: note: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. tgl/updates.c:799:1: note: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. tgl/updates.c:288:19: style: Variable 'UC' can be declared as pointer to const [constVariablePointer] tgl/updates.c:297:19: style: Variable 'UC' can be declared as pointer to const [constVariablePointer] tgl/updates.c:311:19: style: Variable 'C' can be declared as pointer to const [constVariablePointer] tgl/updates.c:403:19: style: Variable 'C' can be declared as pointer to const [constVariablePointer] tgl/updates.c:415:19: style: Variable 'C' can be declared as pointer to const [constVariablePointer] tgl/updates.c:432:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/updates.c:461:19: style: Variable 'U' can be declared as pointer to const [constVariablePointer] tgl/updates.c:470:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/updates.c:483:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] tgl/updates.c:799:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] diff: DONE