2022-06-25 12:36 ftp://ftp.de.debian.org/debian/pool/main/t/telegram-purple/telegram-purple_1.4.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 63e567e (2022-06-25 08:38:17 +0200) count: 223 222 elapsed-time: 4.3 4.2 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: telegram-purple/msglog.c:152:42: style:inconclusive: Function 'print_flags_update' argument 1 names different: declaration 'update' definition 'flags'. [funcArgNamesDifferent] telegram-purple/msglog.h:27:42: note: Function 'print_flags_update' argument 1 names different: declaration 'update' definition 'flags'. telegram-purple/msglog.c:152:42: note: Function 'print_flags_update' argument 1 names different: declaration 'update' definition 'flags'. telegram-purple/telegram-base.c:414:101: style:inconclusive: Function 'write_secret_chat_gw' argument 4 names different: declaration 'E' definition '_'. [funcArgNamesDifferent] telegram-purple/telegram-base.h:32:101: note: Function 'write_secret_chat_gw' argument 4 names different: declaration 'E' definition '_'. telegram-purple/telegram-base.c:414:101: note: Function 'write_secret_chat_gw' argument 4 names different: declaration 'E' definition '_'. telegram-purple/telegram-base.c:423:26: style:inconclusive: Function 'tgp_create_group_chat_by_usernames' argument 5 names different: declaration 'print_names' definition 'use_print_names'. [funcArgNamesDifferent] telegram-purple/telegram-base.h:39:82: note: Function 'tgp_create_group_chat_by_usernames' argument 5 names different: declaration 'print_names' definition 'use_print_names'. telegram-purple/telegram-base.c:423:26: note: Function 'tgp_create_group_chat_by_usernames' argument 5 names different: declaration 'print_names' definition 'use_print_names'. telegram-purple/telegram-base.c:454:62: style: Parameter 'sha1_key' can be declared as pointer to const [constParameter] telegram-purple/telegram-base.c:455:7: style: Variable 'colors' can be declared as const array [constVariable] telegram-purple/telegram-base.c:464:28: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] telegram-purple/test/loadtest.c:48:18: style: struct member 'TdfAccountRequestInfo::account' is never used. [unusedStructMember] telegram-purple/test/loadtest.c:49:9: style: struct member 'TdfAccountRequestInfo::ui_handle' is never used. [unusedStructMember] telegram-purple/test/loadtest.c:50:9: style: struct member 'TdfAccountRequestInfo::user' is never used. [unusedStructMember] telegram-purple/telegram-purple.c:84:74: style:inconclusive: Function 'update_user_handler' argument 2 names different: declaration 'U' definition 'user'. [funcArgNamesDifferent] telegram-purple/telegram-purple.c:37:74: note: Function 'update_user_handler' argument 2 names different: declaration 'U' definition 'user'. telegram-purple/telegram-purple.c:84:74: note: Function 'update_user_handler' argument 2 names different: declaration 'U' definition 'user'. telegram-purple/telegram-purple.c:149:88: style:inconclusive: Function 'update_secret_chat_handler' argument 2 names different: declaration 'C' definition 'U'. [funcArgNamesDifferent] telegram-purple/telegram-purple.c:38:88: note: Function 'update_secret_chat_handler' argument 2 names different: declaration 'C' definition 'U'. telegram-purple/telegram-purple.c:149:88: note: Function 'update_secret_chat_handler' argument 2 names different: declaration 'C' definition 'U'. telegram-purple/tgl/mtproto-common.h:157:4: portability: Casting between signed int * and double * which have an incompatible binary data representation. [invalidPointerCast] telegram-purple/tgl/mtproto-common.h:337:15: portability: Casting between signed int * and double * which have an incompatible binary data representation. [invalidPointerCast] telegram-purple/tgl/tools.h:75:38: style: Parameter 'p' can be declared as pointer to const [constParameter] telegram-purple/tgl/mtproto-common.h:353:17: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/mtproto-common.h:353:23: portability: 'buf+256' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/binlog.c:542:37: style: Condition 'P->encr_chat.exchange_state!=tgl_sce_committed' is always true [knownConditionTrueFalse] telegram-purple/tgl/binlog.c:541:35: note: Assignment 'P->encr_chat.exchange_state=tgl_sce_none', assigned value is 0 telegram-purple/tgl/binlog.c:542:37: note: Condition 'P->encr_chat.exchange_state!=tgl_sce_committed' is always true telegram-purple/tgl/binlog.c:549:37: style: Condition 'P->encr_chat.exchange_state==tgl_sce_committed' is always false [knownConditionTrueFalse] telegram-purple/tgl/binlog.c:548:35: note: Assignment 'P->encr_chat.exchange_state=tgl_sce_none', assigned value is 0 telegram-purple/tgl/binlog.c:549:37: note: Condition 'P->encr_chat.exchange_state==tgl_sce_committed' is always false telegram-purple/tgl/binlog.c:97:50: style:inconclusive: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-binlog.h:34:50: note: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. telegram-purple/tgl/binlog.c:97:50: note: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. telegram-purple/tgl/binlog.c:278:86: style: Parameter 'from_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:278:165: style: Parameter 'date' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:278:132: style: Parameter 'fwd_from_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:278:286: style: Parameter 'reply_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:382:91: style: Parameter 'from_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:382:115: style: Parameter 'to_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:382:127: style: Parameter 'date' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:509:119: style: Parameter 'state' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:509:84: style: Parameter 'exchange_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:560:60: style: Parameter 'access_hash' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:560:313: style: Parameter 'last_read_in' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:560:332: style: Parameter 'last_read_out' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:674:88: style: Parameter 'user_num' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:674:103: style: Parameter 'date' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:674:227: style: Parameter 'admin' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:674:114: style: Parameter 'version' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:674:239: style: Parameter 'last_read_in' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:674:258: style: Parameter 'last_read_out' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:65: style: Parameter 'access_hash' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:83: style: Parameter 'date' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:94: style: Parameter 'admin' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:106: style: Parameter 'user_id' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:258: style: Parameter 'key_fingerprint' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:198: style: Parameter 'in_seq_no' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:235: style: Parameter 'out_seq_no' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:788:214: style: Parameter 'last_in_seq_no' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:905:63: style: Parameter 'access_hash' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:905:81: style: Parameter 'date' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:905:297: style: Parameter 'admins_count' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:905:272: style: Parameter 'participants_count' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:905:316: style: Parameter 'kicked_count' can be declared as pointer to const [constParameter] telegram-purple/tgl/binlog.c:905:335: style: Parameter 'last_read_in' can be declared as pointer to const [constParameter] telegram-purple/tgl/generate.c:2144:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2193:11: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2258:11: warning: Assert statement calls a function which may have desired side effects: 'read_combinator_left'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2259:11: warning: Assert statement calls a function which may have desired side effects: 'read_combinator_right'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2831:11: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2850:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2863:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2864:13: warning: Assert statement calls a function which may have desired side effects: 'read_combinators'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2877:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:76:1: style:inconclusive: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/generate.c:76:1: note: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:76:1: note: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:77:1: style:inconclusive: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/generate.c:77:1: note: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:77:1: note: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:2989:28: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/generate.c:355:7: style: Variable 'y' is assigned a value that is never used. [unreadVariable] telegram-purple/tgl/generate.c:359:7: style: Variable 'y' is assigned a value that is never used. [unreadVariable] telegram-purple/tgl/mtproto-client.c:370:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:383:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:476:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:787:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:813:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:828:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:829:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:842:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:854:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:877:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:888:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:895:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:904:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:912:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:1112: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] telegram-purple/tgl/mtproto-client.c:1113:21: note: Assignment 'DC->server_salt=enc->server_salt' telegram-purple/tgl/mtproto-client.c:1112:23: note: Condition 'DC->server_salt!=enc->server_salt' is redundant telegram-purple/tgl/mtproto-client.c:1310:1: style:inconclusive: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/mtproto-client.c:1310:1: note: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/mtproto-client.c:1310:1: note: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/mtproto-client.c:1426:76: style:inconclusive: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. [funcArgNamesDifferent] telegram-purple/tgl/mtproto-client.h:53:76: note: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. telegram-purple/tgl/mtproto-client.c:1426:76: note: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. telegram-purple/tgl/mtproto-client.c:141:15: style: struct member 'Anonymous1::auth_key_id' is never used. [unusedStructMember] telegram-purple/tgl/tl-parser/portable_endian.h:136:0: error: #error platform not supported [preprocessorErrorDirective] telegram-purple/tgl/structures.c:1132:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1574:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1705:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1740:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1750:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/structures.c:2346:11: style: Condition 'NP' is always false [knownConditionTrueFalse] telegram-purple/tgl/structures.c:2342:32: note: Assignment 'NP=0', assigned value is 0 telegram-purple/tgl/structures.c:2346:11: note: Condition 'NP' is always false telegram-purple/tgl/structures.c:82:1: style:inconclusive: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:82:1: note: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:82:1: note: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:83:1: style:inconclusive: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:83:1: note: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:83:1: note: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:84:1: style:inconclusive: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:84:1: note: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:84:1: note: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:85:1: style:inconclusive: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:85:1: note: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:85:1: note: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:86:1: style:inconclusive: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:86:1: note: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:86:1: note: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:87:1: style:inconclusive: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:87:1: note: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:87:1: note: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:88:1: style:inconclusive: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:88:1: note: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:88:1: note: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:89:1: style:inconclusive: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:89:1: note: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:89:1: note: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:367:93: style:inconclusive: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-fetch.h:26:93: note: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. telegram-purple/tgl/structures.c:367:93: note: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. telegram-purple/tgl/structures.c:1999:56: style:inconclusive: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. [funcArgNamesDifferent] telegram-purple/tgl/tgl.h:373:56: note: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. telegram-purple/tgl/structures.c:1999:56: note: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. telegram-purple/tgl/structures.c:2007:56: style:inconclusive: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. [funcArgNamesDifferent] telegram-purple/tgl/tgl.h:374:56: note: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. telegram-purple/tgl/structures.c:2007:56: note: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. telegram-purple/tgl/structures.c:2464:79: style:inconclusive: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl.h:283:79: note: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. telegram-purple/tgl/structures.c:2464:79: note: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. telegram-purple/tgl/structures.c:1600:19: style: Local variable 'to_id' shadows outer variable [shadowVariable] telegram-purple/tgl/structures.c:1531:17: note: Shadowed declaration telegram-purple/tgl/structures.c:1600:19: note: Shadow variable telegram-purple/tgl/structures.c:2371:82: style: Parameter 'id' can be declared as pointer to const [constParameter] telegram-purple/tgl/queries.c:311:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/queries.c:608:59: error: Array 'with[4]' accessed at index 8, which is out of bounds. [arrayIndexOutOfBounds] telegram-purple/tgl/queries.c:702:75: note: Calling function 'ascii_cmp_nocase', 3rd argument '9' value is 9 telegram-purple/tgl/queries.c:607:17: note: Assuming that condition 'i ' '', the comparison 'EXPR != '\n'' is always true. [redundantCondition] telegram-purple/tgl/tg-mime-types.c:31:23: style:inconclusive: Redundant condition: If 'EXPR > ' '', the comparison 'EXPR != '\n'' is always true. [redundantCondition] telegram-purple/tgl/tg-mime-types.c:46:25: style:inconclusive: Redundant condition: If 'EXPR > ' '', the comparison 'EXPR != '\n'' is always true. [redundantCondition] telegram-purple/tgl/tgl-net.c:351:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:389:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:476:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:481:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:128:55: style:inconclusive: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-net-inner.h:70:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:128:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:165:47: style:inconclusive: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-net-inner.h:72:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:165:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:197:54: style:inconclusive: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-net-inner.h:73:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:197:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl.c:57:75: style: Parameter 'cb' can be declared as pointer to const [constParameter] telegram-purple/tgl/tl-parser/tlc.c:74:33: style: Parameter 'in_end' can be declared as pointer to const [constParameter] telegram-purple/tgl/tools.c:169:14: warning: Either the condition 'ptr' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] telegram-purple/tgl/tools.c:170:7: note: Assuming that condition 'ptr' is not redundant telegram-purple/tgl/tools.c:169:14: note: Null pointer dereference telegram-purple/tgl/tools.c:135:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:140:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:140:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:141:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:142:32: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:142:36: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:142:46: portability: 'ptr+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:150:16: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:150:20: portability: 'p+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:150:30: portability: 'p+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:190:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:191:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:191:24: portability: 'p+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:192:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:192:26: portability: 'p+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:192:30: portability: 'p+8+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:196:12: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:260:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:261:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:261:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:262:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:262:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:262:38: portability: 'ptr+8+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:272:25: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:272:29: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:22: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:35: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:39: portability: 'ptr+8+l' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:283:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:288:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:288:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:289:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:290:32: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:290:36: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:290:46: portability: 'ptr+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgp-2prpl.c:83:78: style:inconclusive: Function 'tgp_chat_got_in' argument 3 names different: declaration 'who' definition 'from'. [funcArgNamesDifferent] telegram-purple/tgp-2prpl.h:40:78: note: Function 'tgp_chat_got_in' argument 3 names different: declaration 'who' definition 'from'. telegram-purple/tgp-2prpl.c:83:78: note: Function 'tgp_chat_got_in' argument 3 names different: declaration 'who' definition 'from'. telegram-purple/tgp-2prpl.c:176:58: style:inconclusive: Function 'p2tgl_imgstore_add_with_id_raw' argument 1 names different: declaration 'raw_rgba' definition 'raw_bgra'. [funcArgNamesDifferent] telegram-purple/tgp-2prpl.h:47:58: note: Function 'p2tgl_imgstore_add_with_id_raw' argument 1 names different: declaration 'raw_rgba' definition 'raw_bgra'. telegram-purple/tgp-2prpl.c:176:58: note: Function 'p2tgl_imgstore_add_with_id_raw' argument 1 names different: declaration 'raw_rgba' definition 'raw_bgra'. telegram-purple/tgp-blist.c:136:52: style:inconclusive: Function 'tgp_blist_buddy_get_peer' argument 1 names different: declaration 'peer' definition 'buddy'. [funcArgNamesDifferent] telegram-purple/tgp-blist.h:50:52: note: Function 'tgp_blist_buddy_get_peer' argument 1 names different: declaration 'peer' definition 'buddy'. telegram-purple/tgp-blist.c:136:52: note: Function 'tgp_blist_buddy_get_peer' argument 1 names different: declaration 'peer' definition 'buddy'. telegram-purple/tgl/updates.c:640:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:632:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:636:19: note: Assuming condition is false telegram-purple/tgl/updates.c:640:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:647:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:640:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:647:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:669:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:661:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:665:19: note: Assuming condition is false telegram-purple/tgl/updates.c:669:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:676:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:669:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:676:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:799:1: style:inconclusive: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/updates.c:799:1: note: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/updates.c:799:1: note: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgp-chat.c:303:10: style: Local variable 'info' shadows outer function [shadowFunction] telegram-purple/msglog.h:23:6: note: Shadowed declaration telegram-purple/tgp-chat.c:303:10: note: Shadow variable telegram-purple/tgp-info.c:74:53: style: Condition 'parent' is always false [knownConditionTrueFalse] telegram-purple/tgp-info.c:64:24: note: Assignment 'parent=NULL', assigned value is 0 telegram-purple/tgp-info.c:74:53: note: Condition 'parent' is always false telegram-purple/tgp-info.c:186:26: warning: Either the condition 'O' is redundant or there is possible null pointer dereference: O. [nullPointerRedundantCheck] telegram-purple/tgp-info.c:158:7: note: Assuming that condition 'O' is not redundant telegram-purple/tgp-info.c:186:26: note: Null pointer dereference telegram-purple/tgp-info.c:94:25: style: Local variable 'info' shadows outer function [shadowFunction] telegram-purple/msglog.h:23:6: note: Shadowed declaration telegram-purple/tgp-info.c:94:25: note: Shadow variable telegram-purple/tgp-info.c:130:25: style: Local variable 'info' shadows outer function [shadowFunction] telegram-purple/msglog.h:23:6: note: Shadowed declaration telegram-purple/tgp-info.c:130:25: note: Shadow variable telegram-purple/tgp-msg.c:206:0: error: #error "Too outdated glib version!" [preprocessorErrorDirective] telegram-purple/tgp-net.c:264:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] telegram-purple/tgp-net.c:419:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgp-net.c:424:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgp-net.c:113:55: style:inconclusive: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgp-net.h:70:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:113:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:150:47: style:inconclusive: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgp-net.h:72:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:150:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:182:54: style:inconclusive: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgp-net.h:73:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:182:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-utils.c:25:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] diff: head telegram-purple/telegram-base.c:454:62: style: Parameter 'sha1_key' can be declared as pointer to const [constParameter] 2.8 telegram-purple/telegram-base.c:454:62: style: Parameter 'sha1_key' can be declared with const [constParameter] head telegram-purple/telegram-base.c:455:7: style: Variable 'colors' can be declared as const array [constVariable] 2.8 telegram-purple/telegram-base.c:455:7: style: Variable 'colors' can be declared with const [constVariable] head telegram-purple/tgl/binlog.c:278:132: style: Parameter 'fwd_from_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:278:132: style: Parameter 'fwd_from_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:278:165: style: Parameter 'date' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:278:165: style: Parameter 'date' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:278:286: style: Parameter 'reply_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:278:286: style: Parameter 'reply_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:278:86: style: Parameter 'from_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:278:86: style: Parameter 'from_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:382:115: style: Parameter 'to_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:382:115: style: Parameter 'to_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:382:127: style: Parameter 'date' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:382:127: style: Parameter 'date' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:382:91: style: Parameter 'from_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:382:91: style: Parameter 'from_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:509:119: style: Parameter 'state' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:509:119: style: Parameter 'state' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:509:84: style: Parameter 'exchange_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:509:84: style: Parameter 'exchange_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:560:313: style: Parameter 'last_read_in' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:560:313: style: Parameter 'last_read_in' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:560:332: style: Parameter 'last_read_out' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:560:332: style: Parameter 'last_read_out' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:560:60: style: Parameter 'access_hash' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:560:60: style: Parameter 'access_hash' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:674:103: style: Parameter 'date' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:674:103: style: Parameter 'date' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:674:114: style: Parameter 'version' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:674:114: style: Parameter 'version' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:674:227: style: Parameter 'admin' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:674:227: style: Parameter 'admin' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:674:239: style: Parameter 'last_read_in' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:674:239: style: Parameter 'last_read_in' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:674:258: style: Parameter 'last_read_out' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:674:258: style: Parameter 'last_read_out' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:674:88: style: Parameter 'user_num' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:674:88: style: Parameter 'user_num' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:106: style: Parameter 'user_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:106: style: Parameter 'user_id' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:198: style: Parameter 'in_seq_no' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:198: style: Parameter 'in_seq_no' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:214: style: Parameter 'last_in_seq_no' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:214: style: Parameter 'last_in_seq_no' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:235: style: Parameter 'out_seq_no' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:235: style: Parameter 'out_seq_no' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:258: style: Parameter 'key_fingerprint' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:258: style: Parameter 'key_fingerprint' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:65: style: Parameter 'access_hash' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:65: style: Parameter 'access_hash' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:83: style: Parameter 'date' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:83: style: Parameter 'date' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:788:94: style: Parameter 'admin' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:788:94: style: Parameter 'admin' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:905:272: style: Parameter 'participants_count' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:905:272: style: Parameter 'participants_count' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:905:297: style: Parameter 'admins_count' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:905:297: style: Parameter 'admins_count' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:905:316: style: Parameter 'kicked_count' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:905:316: style: Parameter 'kicked_count' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:905:335: style: Parameter 'last_read_in' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:905:335: style: Parameter 'last_read_in' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:905:63: style: Parameter 'access_hash' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:905:63: style: Parameter 'access_hash' can be declared with const [constParameter] head telegram-purple/tgl/binlog.c:905:81: style: Parameter 'date' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/binlog.c:905:81: style: Parameter 'date' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:1251:69: style: Parameter '_reply_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:1251:69: style: Parameter '_reply_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:1310:66: style: Parameter '_reply_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:1310:66: style: Parameter '_reply_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:2232:70: style: Parameter '_reply_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:2232:70: style: Parameter '_reply_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:2509:94: style: Parameter '_msg_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:2509:94: style: Parameter '_msg_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:2579:69: style: Parameter '_reply_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:2579:69: style: Parameter '_reply_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:2604:92: style: Parameter '_msg_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:2604:92: style: Parameter '_msg_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:2717:70: style: Parameter '_reply_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:2717:70: style: Parameter '_reply_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:4168:84: style: Parameter 'ids' can be declared as const array [constParameter] 2.8 telegram-purple/tgl/queries.c:4168:84: style: Parameter 'ids' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:4194:81: style: Parameter 'ids' can be declared as const array [constParameter] 2.8 telegram-purple/tgl/queries.c:4194:81: style: Parameter 'ids' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:4263:66: style: Parameter '_msg_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:4263:66: style: Parameter '_msg_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:4521:67: style: Parameter '_msg_id' can be declared as pointer to const [constParameter] 2.8 telegram-purple/tgl/queries.c:4521:67: style: Parameter '_msg_id' can be declared with const [constParameter] head telegram-purple/tgl/queries.c:608:59: error: Array 'with[4]' accessed at index 8, which is out of bounds. [arrayIndexOutOfBounds] telegram-purple/tgl/queries.c:702:75: note: Calling function 'ascii_cmp_nocase', 3rd argument '9' value is 9 telegram-purple/tgl/queries.c:607:17: note: Assuming that condition 'i