2024-04-15 18:26 ftp://ftp.de.debian.org/debian/pool/main/c/crossfire-client/crossfire-client_1.75.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=opengl --library=sdl --library=libcurl --library=lua --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 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 087fd79 (2024-04-15 20:21:32 +0200) count: 307 166 elapsed-time: 2.5 2.7 head-timing-info: old-timing-info: head results: crossfire-client-1.75.0/common/client.c:327:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] crossfire-client-1.75.0/common/client.c:443:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] crossfire-client-1.75.0/common/client.c:195:48: warning: Either the condition '!err' is redundant or there is possible null pointer dereference: err. [nullPointerRedundantCheck] crossfire-client-1.75.0/common/client.c:194:13: note: Assuming that condition '!err' is not redundant crossfire-client-1.75.0/common/client.c:195:48: note: Null pointer dereference crossfire-client-1.75.0/common/init.c:44:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/client.c:287:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/common/client.c:287:19: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/common/image.c:103:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/image.c:375:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CF_DATADIR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/image.c:463:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CF_DATADIR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/commands.c:213:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/item.c:709:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] crossfire-client-1.75.0/common/item.c:796:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] crossfire-client-1.75.0/common/item.c:596:26: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/item.c:614:26: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/item.c:786:30: style: Parameter 'it' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/item.c:791:36: style: Parameter 'scroll' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/item.c:791:51: style: Parameter 'spell' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/metaserver.c:167:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/metaserver.c:55:32: style: Parameter 'contents' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/metaserver.c:85:41: style: Parameter 'server' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/metaserver.c:121:16: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/misc.c:126:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/image.c:751:31: warning: Either the condition 'onset>=20' is redundant or the array 'face_info.facesets[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/image.c:747:23: note: Assuming that condition 'onset>=20' is not redundant crossfire-client-1.75.0/common/image.c:751:31: note: Array index out of bounds crossfire-client-1.75.0/common/image.c:752:31: warning: Either the condition 'onset>=20' is redundant or the array 'face_info.facesets[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/image.c:747:23: note: Assuming that condition 'onset>=20' is not redundant crossfire-client-1.75.0/common/image.c:752:31: note: Array index out of bounds crossfire-client-1.75.0/common/image.c:753:31: warning: Either the condition 'onset>=20' is redundant or the array 'face_info.facesets[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/image.c:747:23: note: Assuming that condition 'onset>=20' is not redundant crossfire-client-1.75.0/common/image.c:753:31: note: Array index out of bounds crossfire-client-1.75.0/common/image.c:754:31: warning: Either the condition 'onset>=20' is redundant or the array 'face_info.facesets[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/image.c:747:23: note: Assuming that condition 'onset>=20' is not redundant crossfire-client-1.75.0/common/image.c:754:31: note: Array index out of bounds crossfire-client-1.75.0/common/image.c:755:31: warning: Either the condition 'onset>=20' is redundant or the array 'face_info.facesets[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/image.c:747:23: note: Assuming that condition 'onset>=20' is not redundant crossfire-client-1.75.0/common/image.c:755:31: note: Array index out of bounds crossfire-client-1.75.0/common/image.c:756:31: warning: Either the condition 'onset>=20' is redundant or the array 'face_info.facesets[20]' is accessed at index 20, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/image.c:747:23: note: Assuming that condition 'onset>=20' is not redundant crossfire-client-1.75.0/common/image.c:756:31: note: Array index out of bounds crossfire-client-1.75.0/common/image.c:735:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/common/image.c:739:28: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/common/image.c:348:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] crossfire-client-1.75.0/common/image.c:66:15: style: Variable 'lp' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/image.c:570:44: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/image.c:802:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/image.c:805:16: style: Variable 'lp' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/image.c:708:15: style: Variable 'onset' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/common/misc.c:87:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/newsocket.c:248:40: style:inconclusive: Function 'cs_print_string' argument 1 names different: declaration 'c' definition 'fd'. [funcArgNamesDifferent] crossfire-client-1.75.0/common/proto.h:91:40: note: Function 'cs_print_string' argument 1 names different: declaration 'c' definition 'fd'. crossfire-client-1.75.0/common/newsocket.c:248:40: note: Function 'cs_print_string' argument 1 names different: declaration 'c' definition 'fd'. crossfire-client-1.75.0/common/player.c:236:42: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] crossfire-client-1.75.0/common/script.c:694:89: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] crossfire-client-1.75.0/common/p_cmd.c:531:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/common/p_cmd.c:538:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/common/test-metaserver.c:5:31: style: Parameter 'server' can be declared as pointer to const. However it seems that 'print_entry' is a callback function, if 'server' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/common/test-metaserver.c:12:14: note: You might need to cast the function pointer here crossfire-client-1.75.0/common/test-metaserver.c:5:31: note: Parameter 'server' can be declared as pointer to const crossfire-client-1.75.0/common/test-metaserver.c:5:70: style: Parameter 'version' can be declared as pointer to const. However it seems that 'print_entry' is a callback function, if 'version' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/common/test-metaserver.c:12:14: note: You might need to cast the function pointer here crossfire-client-1.75.0/common/test-metaserver.c:5:70: note: Parameter 'version' can be declared as pointer to const crossfire-client-1.75.0/common/test-metaserver.c:6:31: style: Parameter 'comment' can be declared as pointer to const. However it seems that 'print_entry' is a callback function, if 'comment' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/common/test-metaserver.c:12:14: note: You might need to cast the function pointer here crossfire-client-1.75.0/common/test-metaserver.c:6:31: note: Parameter 'comment' can be declared as pointer to const crossfire-client-1.75.0/common/p_cmd.c:583:43: style:inconclusive: Function 'complete_command' argument 1 names different: declaration 'ocommand' definition 'command'. [funcArgNamesDifferent] crossfire-client-1.75.0/common/p_cmd.h:89:51: note: Function 'complete_command' argument 1 names different: declaration 'ocommand' definition 'command'. crossfire-client-1.75.0/common/p_cmd.c:583:43: note: Function 'complete_command' argument 1 names different: declaration 'ocommand' definition 'command'. crossfire-client-1.75.0/common/p_cmd.c:46:25: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/p_cmd.c:355:22: style: Variable 'a' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/p_cmd.c:356:22: style: Variable 'b' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/p_cmd.c:366:22: style: Variable 'a' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/p_cmd.c:367:22: style: Variable 'b' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/p_cmd.c:399:22: style: Variable 'dummy_p' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/gtk-v2/src/cfsndserv.c:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_AUDIO [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/cfsndserv.c:82:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CF_SOUND_DIR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/cfsndserv.c:109:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSOCKBUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/cfsndserv.c:133:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/cfsndserv.c:159:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSOCKBUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/cfsndserv.c:173:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:149:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_OK [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:157:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:254:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:312:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_YES_NO [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:449:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:487:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable serverloginmethod [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:713:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:922:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:1039:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:1186:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO_NEWS [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:1271:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable serverloginmethod [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:77:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:164:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:200:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:312:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:397:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:443:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_faceset [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:524:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CFG_DM_PIXMAP [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:547:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:629:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:790:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_HPANED [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/config.c:847:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_HPANED [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/account.c:1202:60: style: Condition 'cp==mynews' is always false [knownConditionTrueFalse] crossfire-client-1.75.0/gtk-v2/src/account.c:1201:51: note: Assuming that condition 'cp>mynews' is not redundant crossfire-client-1.75.0/gtk-v2/src/account.c:1202:60: note: Condition 'cp==mynews' is always false crossfire-client-1.75.0/gtk-v2/src/account.c:126:44: style: Parameter 'window' can be declared as pointer to const. However it seems that 'on_window_delete_event' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:231:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:126:44: note: Parameter 'window' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:186:46: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_button_create_new_char_clicked' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:233:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:186:46: note: Parameter 'button' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:186:63: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_button_create_new_char_clicked' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:233:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:186:63: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:196:44: style: Parameter 'entry' can be declared as pointer to const. However it seems that 'on_entry_new_character_name' is a callback function, if 'entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:237:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:196:44: note: Parameter 'entry' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:196:60: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_entry_new_character_name' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:237:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:196:60: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:694:37: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/account.c:870:34: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/account.c:897:44: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_button_go_metaserver_clicked' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:1017:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:897:44: note: Parameter 'button' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:897:61: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_button_go_metaserver_clicked' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/account.c:1017:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/account.c:897:61: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/account.c:906:47: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/account.c:906:64: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/account.c:1127:44: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/config.c:129:61: error: Allocation with ui_name, snprintf doesn't release it. [leakNoVarFunctionCall] crossfire-client-1.75.0/gtk-v2/src/config.c:452:13: error: Allocation with g_key_file_to_data, g_file_set_contents doesn't release it. [leakNoVarFunctionCall] crossfire-client-1.75.0/gtk-v2/src/config.c:780:35: error: Allocation with ui_name, g_key_file_set_string doesn't release it. [leakNoVarFunctionCall] crossfire-client-1.75.0/gtk-v2/src/config.c:791:44: error: Allocation with ui_name, g_key_file_set_integer doesn't release it. [leakNoVarFunctionCall] crossfire-client-1.75.0/gtk-v2/src/create_char.c:132:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_NEW_CHAR_STATS [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:163:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable races [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:210:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:268:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:399:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_NEW_CHAR_STATS [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:555:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable classes [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:644:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stat_points [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:746:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable starting_map_info [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:763:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable starting_map_number [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/create_char.c:829:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_NEW_CHAR_STATS [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/commands.c:455:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] crossfire-client-1.75.0/common/commands.c:1159:15: warning: Either the condition 'anum>2000' is redundant or the array 'animations[2000]' is accessed at index 2000, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/commands.c:1154:26: note: Assuming that condition 'anum>2000' is not redundant crossfire-client-1.75.0/common/commands.c:1159:15: note: Array index out of bounds crossfire-client-1.75.0/common/commands.c:1160:15: warning: Either the condition 'anum>2000' is redundant or the array 'animations[2000]' is accessed at index 2000, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/commands.c:1154:26: note: Assuming that condition 'anum>2000' is not redundant crossfire-client-1.75.0/common/commands.c:1160:15: note: Array index out of bounds crossfire-client-1.75.0/common/commands.c:1161:19: warning: Either the condition 'anum>2000' is redundant or the array 'animations[2000]' is accessed at index 2000, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/common/commands.c:1154:26: note: Assuming that condition 'anum>2000' is not redundant crossfire-client-1.75.0/common/commands.c:1161:19: note: Array index out of bounds crossfire-client-1.75.0/common/commands.c:1844:16: error: Array 'buf[1]' accessed at index 1, which is out of bounds. [arrayIndexOutOfBounds] crossfire-client-1.75.0/common/commands.c:1843:32: note: Assuming that condition 'i>0' is not redundant crossfire-client-1.75.0/common/commands.c:1844:16: note: Array index out of bounds crossfire-client-1.75.0/common/commands.c:498:13: style: Condition 'nl' is always true [knownConditionTrueFalse] crossfire-client-1.75.0/common/commands.c:2316:9: warning: %hd in format string (no. 1) requires 'short *' but the argument type is 'unsigned short *'. [invalidScanfArgType_int] crossfire-client-1.75.0/common/commands.c:2316:9: warning: %hd in format string (no. 2) requires 'short *' but the argument type is 'unsigned short *'. [invalidScanfArgType_int] crossfire-client-1.75.0/common/commands.c:2316:9: warning: %hd in format string (no. 3) requires 'short *' but the argument type is 'unsigned short *'. [invalidScanfArgType_int] crossfire-client-1.75.0/common/commands.c:2316:9: warning: %hd in format string (no. 4) requires 'short *' but the argument type is 'unsigned short *'. [invalidScanfArgType_int] crossfire-client-1.75.0/gtk-v2/src/image.c:103:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/image.c:219:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/image.c:289:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/image.c:426:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/image.c:454:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_POPUP [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/image.c:492:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/image.c:522:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable question_xpm [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/commands.c:172:50: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1148:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1193:31: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1213:24: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1354:30: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1542:25: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1544:17: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/commands.c:1615:31: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1663:30: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1713:35: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1797:32: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1823:37: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1864:33: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1949:33: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1987:33: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:2067:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:2180:26: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:2210:30: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:2212:16: style: Variable 'dx' can be declared as const array [constVariable] crossfire-client-1.75.0/common/commands.c:2213:16: style: Variable 'dy' can be declared as const array [constVariable] crossfire-client-1.75.0/common/commands.c:2363:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:2374:22: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:2388:24: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/common/commands.c:1781:13: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/gtk-v2/src/create_char.c:399:57: style: Local variable 'negative_stat' shadows outer variable [shadowVariable] crossfire-client-1.75.0/gtk-v2/src/create_char.c:66:24: note: Shadowed declaration crossfire-client-1.75.0/gtk-v2/src/create_char.c:399:57: note: Shadow variable crossfire-client-1.75.0/gtk-v2/src/create_char.c:365:32: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_button_cc_cancel' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:866:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:365:32: note: Parameter 'button' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:365:49: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_button_cc_cancel' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:866:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:365:49: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:380:42: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_button_choose_starting_map' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:868:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:380:42: note: Parameter 'button' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:380:59: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_button_choose_starting_map' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:868:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:380:59: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:515:34: style: Parameter 'spinbutton' can be declared as pointer to const. However it seems that 'on_spinbutton_cc' is a callback function, if 'spinbutton' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:833:9: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:515:34: note: Parameter 'spinbutton' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:515:55: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_spinbutton_cc' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:833:9: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:515:55: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:721:33: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_button_csm_cancel' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:892:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:721:33: note: Parameter 'button' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/create_char.c:721:50: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_button_csm_cancel' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/create_char.c:892:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/create_char.c:721:50: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/image.c:402:40: style: Parameter 'ce' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/image.c:516:15: style: Variable 'style' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/gtk-v2/src/image.c:519:11: style: Variable 'style' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/gtk-v2/src/inventory.c:149:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_UNIDENTIFIED [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:195:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ob [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:222:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:290:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:386:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_VIEW_COLUMN_FIXED [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:435:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_NONE [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:556:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:598:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:712:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:746:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inv [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:783:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inv [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:882:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inv [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:1043:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable weight [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:1065:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable container [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:1099:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inv_updated [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:1132:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable animations [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:1177:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable animations [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:322:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:361:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_LAST [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:410:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:515:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_type_names [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:634:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:739:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_CLIENT [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:822:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:923:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable want_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1152:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_LAST [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1377:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_LAST [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1475:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_LAST [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1494:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1562:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1748:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_LAST [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:1780:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_TYPE_LAST [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:242:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:331:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:514:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:529:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIG_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:787:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fire_on [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:821:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:983:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1019:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1081:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1263:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1358:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1460:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1518:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fire_on [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1564:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1699:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_echo [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1755:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_state [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1790:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_config [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1956:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:2038:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:2073:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:2198:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:2224:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:2337:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:2423:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/inventory.c:111:27: style: Parameter 'it' can be declared as pointer to const. However it seems that 'show_all' is a callback function, if 'it' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/inventory.c:163:34: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/inventory.c:111:27: note: Parameter 'it' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/inventory.c:127:30: style: Parameter 'it' can be declared as pointer to const. However it seems that 'show_cursed' is a callback function, if 'it' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/inventory.c:157:37: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/inventory.c:127:30: note: Parameter 'it' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/inventory.c:143:32: style: Parameter 'it' can be declared as pointer to const. However it seems that 'show_unlocked' is a callback function, if 'it' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/inventory.c:161:42: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/inventory.c:143:32: note: Parameter 'it' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/inventory.c:148:36: style: Parameter 'it' can be declared as pointer to const. However it seems that 'show_unidentified' is a callback function, if 'it' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/inventory.c:162:56: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/inventory.c:148:36: note: Parameter 'it' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/inventory.c:212:46: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:571:28: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:578:27: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:626:38: style: Parameter 'it' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:670:38: style: Parameter 'it' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:673:43: style: Parameter 'container' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:676:37: style: Parameter 'it' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/inventory.c:853:11: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/gtk-v2/src/magicmap.c:25:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable magicmap [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/magicmap.c:80:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable showmagic [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/main.c:471:29: error: There is an unknown macro here somewhere. Configuration is required. If FULL_VERSION is a macro then please configure it. [unknownMacro] crossfire-client-1.75.0/gtk-v2/src/map.c:429:34: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] crossfire-client-1.75.0/gtk-v2/src/menubar.c:63:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/menubar.c:45:49: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_disconnect_activate' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/menubar.c:107:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/menubar.c:45:49: note: Parameter 'menuitem' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/menubar.c:45:68: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_disconnect_activate' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/menubar.c:107:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/menubar.c:45:68: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/menubar.c:74:46: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'menu_quit_character' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/menubar.c:95:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/menubar.c:74:46: note: Parameter 'menuitem' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/menubar.c:74:65: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'menu_quit_character' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/menubar.c:95:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/menubar.c:74:65: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/metaserver.c:221:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_state [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/metaserver.c:241:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/common/mapdata.c:1048:19: style: Local variable 'width' shadows outer variable [shadowVariable] crossfire-client-1.75.0/common/mapdata.c:85:12: note: Shadowed declaration crossfire-client-1.75.0/common/mapdata.c:1048:19: note: Shadow variable crossfire-client-1.75.0/common/mapdata.c:1048:41: style: Local variable 'height' shadows outer variable [shadowVariable] crossfire-client-1.75.0/common/mapdata.c:86:12: note: Shadowed declaration crossfire-client-1.75.0/common/mapdata.c:1048:41: note: Shadow variable crossfire-client-1.75.0/common/mapdata.c:1053:19: style: Local variable 'width' shadows outer variable [shadowVariable] crossfire-client-1.75.0/common/mapdata.c:85:12: note: Shadowed declaration crossfire-client-1.75.0/common/mapdata.c:1053:19: note: Shadow variable crossfire-client-1.75.0/common/mapdata.c:1053:45: style: Local variable 'height' shadows outer variable [shadowVariable] crossfire-client-1.75.0/common/mapdata.c:86:12: note: Shadowed declaration crossfire-client-1.75.0/common/mapdata.c:1053:45: note: Shadow variable crossfire-client-1.75.0/common/mapdata.c:545:26: style: Variable 'head' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/mapdata.c:693:21: style: Variable 'cell' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/common/mapdata.c:768:16: style: Variable 'dx' can be declared as const array [constVariable] crossfire-client-1.75.0/common/mapdata.c:769:16: style: Variable 'dy' can be declared as const array [constVariable] crossfire-client-1.75.0/common/mapdata.c:1052:30: style: Variable 'head_ptr' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/gtk-v2/src/metaserver.c:204:42: style: Parameter 'button' can be declared as pointer to const. However it seems that 'on_button_refresh' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/metaserver.c:104:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/metaserver.c:204:42: note: Parameter 'button' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/metaserver.c:204:59: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_button_refresh' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] crossfire-client-1.75.0/gtk-v2/src/metaserver.c:104:5: note: You might need to cast the function pointer here crossfire-client-1.75.0/gtk-v2/src/metaserver.c:204:59: note: Parameter 'user_data' can be declared as pointer to const crossfire-client-1.75.0/gtk-v2/src/pickup.c:620:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/png.c:111:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_INFO_tRNS [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/png.c:251:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRITICAL [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/png.c:419:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/png.c:442:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/skills.c:64:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/skills.c:199:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/keys.c:1428:5: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] crossfire-client-1.75.0/gtk-v2/src/keys.c:608:16: style: Local variable 'f' shadows outer variable [shadowVariable] crossfire-client-1.75.0/gtk-v2/src/keys.c:597:12: note: Shadowed declaration crossfire-client-1.75.0/gtk-v2/src/keys.c:608:16: note: Shadow variable crossfire-client-1.75.0/gtk-v2/src/keys.c:609:23: style: Local variable 'in' shadows outer variable [shadowVariable] crossfire-client-1.75.0/gtk-v2/src/keys.c:598:19: note: Shadowed declaration crossfire-client-1.75.0/gtk-v2/src/keys.c:609:23: note: Shadow variable crossfire-client-1.75.0/gtk-v2/src/keys.c:2224:17: style: Local variable 'bind_buf' shadows outer variable [shadowVariable] crossfire-client-1.75.0/gtk-v2/src/keys.c:124:13: note: Shadowed declaration crossfire-client-1.75.0/gtk-v2/src/keys.c:2224:17: note: Shadow variable crossfire-client-1.75.0/gtk-v2/src/skills.c:200:11: style: Variable 'commandname' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/gtk-v2/src/keys.c:941:46: style: Parameter 'kb' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/keys.c:1359:21: style: Variable 'kb' can be declared as pointer to const [constVariablePointer] crossfire-client-1.75.0/gtk-v2/src/keys.c:1546:49: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/skills.c:83:20: style: Variable 'buf[0]' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/gtk-v2/src/sound.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/sound.c:123:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERROR [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/png.c:184:9: error: Mismatching allocation and deallocation: pixels [mismatchAllocDealloc] crossfire-client-1.75.0/gtk-v2/src/png.c:159:23: note: Mismatching allocation and deallocation: pixels crossfire-client-1.75.0/gtk-v2/src/png.c:184:9: note: Mismatching allocation and deallocation: pixels crossfire-client-1.75.0/gtk-v2/src/stats.c:445:37: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] crossfire-client-1.75.0/gtk-v2/src/png.c:235:35: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/png.c:414:38: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/png.c:440:48: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] crossfire-client-1.75.0/gtk-v2/src/png.c:243:69: style: Variable 'dest_column' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/gtk-v2/src/png.c:243:86: style: Variable 'source_column' is assigned a value that is never used. [unreadVariable] crossfire-client-1.75.0/gtk-v2/src/spells.c:78:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_NONE [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/spells.c:195:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/spells.c:498:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/spells.c:527:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/spells.c:555:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_BUF [valueFlowBailoutIncompleteVar] crossfire-client-1.75.0/gtk-v2/src/info.c:830:34: warning: Either the condition 'orig_color>13' is redundant or the array 'usercolorname[13]' is accessed at index 13, which is out of bounds. [arrayIndexOutOfBoundsCond] crossfire-client-1.75.0/gtk-v2/src/info.c:821:40: note: Assuming that condition 'orig_color>13' is not redundant crossfire-client-1.75.0/gtk-v2/src/info.c:830:34: note: Array index out of bounds crossfire-client-1.75.0/gtk-v2/src/info.c:928:17: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1607:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1619:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1629:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1639:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1647:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1656:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1671:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] crossfire-client-1.75.0/gtk-v2/src/info.c:1094:39: warning: Invalid test for overflow 'info_buffer[loop].age