2025-05-10 18:14 ftp://ftp.de.debian.org/debian/pool/main/g/gbatnav/gbatnav_1.0.4cvs20051004.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 131 131 elapsed-time: 3.5 3.4 head-timing-info: old-timing-info: head results: gbatnav-1.0.4cvs20051004.orig/common/bnwrite.c:27:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/common/common.c:25:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/common/bnwrite.c:20:22: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] gbatnav-1.0.4cvs20051004.orig/common/net.c:70:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/common/net.c:97:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/common/net.c:119:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/common/net.c:163:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_PASSIVE [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/common/net.c:224:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/configure.c:28:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPLAYER [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/configure.c:17:13: style: Variable 'widget' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/gbnclient/configure.c:30:10: style: Variable 'widget' is assigned a value that is never used. [unreadVariable] gbatnav-1.0.4cvs20051004.orig/common/parser.c:42:8: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] gbatnav-1.0.4cvs20051004.orig/common/net.c:118:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gbatnav-1.0.4cvs20051004.orig/common/net.c:162:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] gbatnav-1.0.4cvs20051004.orig/common/net.c:115:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gbatnav-1.0.4cvs20051004.orig/common/net.c:159:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gbatnav-1.0.4cvs20051004.orig/common/net.c:215:24: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:73:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_OPEN_MAX [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:85:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BATNAV_STATUS_ERROR [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:121:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BATNAV_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:136:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:156:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:205:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNOME_PAD_SMALL [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_interface.c:450:79: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:195:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:199:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gbatnav-1.0.4cvs20051004.orig/gbnclient/g_connect.c:241:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gbatnav-1.0.4cvs20051004.orig/gbnclient/gbnclient.c:251:40: error: There is an unknown macro here somewhere. Configuration is required. If BN_READ is a macro then please configure it. [unknownMacro] gbatnav-1.0.4cvs20051004.orig/gbnclient/proceso.c:229:14: error: There is an unknown macro here somewhere. Configuration is required. If BN_READ is a macro then please configure it. [unknownMacro] gbatnav-1.0.4cvs20051004.orig/gbnclient/random_board.c:24:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PLAY [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/random_board.c:178:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/random_board.c:192:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/sendmsg.c:13:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCON [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:74:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_NONE [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:126:7: style: Variable 'item' is reassigned a value before the old one has been used. [redundantAssignment] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:115:7: note: item is assigned gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:126:7: note: item is overwritten gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:137:7: style: Variable 'item' is reassigned a value before the old one has been used. [redundantAssignment] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:126:7: note: item is assigned gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:137:7: note: item is overwritten gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:150:7: style: Variable 'item' is reassigned a value before the old one has been used. [redundantAssignment] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:137:7: note: item is assigned gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:150:7: note: item is overwritten gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:200:7: style: Variable 'item' is reassigned a value before the old one has been used. [redundantAssignment] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:189:7: note: item is assigned gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:200:7: note: item is overwritten gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:102:19: style: Variable 'item' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:179:19: style: Variable 'item' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:150:7: style: Variable 'item' is assigned a value that is never used. [unreadVariable] gbatnav-1.0.4cvs20051004.orig/gbnclient/support.c:200:7: style: Variable 'item' is assigned a value that is never used. [unreadVariable] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:25:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AGUA [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:59:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:85:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOCADO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:103:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AGUA [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:113:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:131:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOCADO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_ai.c:170:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_proceso.c:232:40: error: There is an unknown macro here somewhere. Configuration is required. If BN_FIRE is a macro then please configure it. [unknownMacro] gbatnav-1.0.4cvs20051004.orig/gbnclient/pantalla.c:31:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/pantalla.c:95:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/pantalla.c:227:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnclient/pantalla.c:251:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_random_board.c:27:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_random_board.c:143:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnrobot/robot_random_board.c:155:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnserver/check_board.c:30:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOBARCO [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:57:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:121:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable widget [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:124:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:127:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:132:14: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:32:41: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'on_exit_activate' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:128:3: note: You might need to cast the function pointer here gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:32:41: note: Parameter 'widget' can be declared as pointer to const gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:32:58: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_exit_activate' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:128:3: note: You might need to cast the function pointer here gbatnav-1.0.4cvs20051004.orig/gbnserver/g_interface.c:32:58: note: Parameter 'data' can be declared as pointer to const gbatnav-1.0.4cvs20051004.orig/gbnserver/gbnserver.c:405:3: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gbatnav-1.0.4cvs20051004.orig/gbnserver/play.c:56:12: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/eval-plural.h:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:545:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/dgettext.c:52:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/dngettext.c:53:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:252:12: style: Local variable 'len' shadows outer variable [shadowVariable] gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:224:14: note: Shadowed declaration gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:252:12: note: Shadow variable gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:283:15: style: Local variable 'len' shadows outer variable [shadowVariable] gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:224:14: note: Shadowed declaration gbatnav-1.0.4cvs20051004.orig/intl/bindtextdom.c:283:15: note: Shadow variable gbatnav-1.0.4cvs20051004.orig/intl/gettext.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:50:30: style:inconclusive: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:160:54: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:50:30: note: Function '_nl_find_domain' argument 1 names different: declaration '__dirname' definition 'dirname'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:50:45: style:inconclusive: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:160:71: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:50:45: note: Function '_nl_find_domain' argument 2 names different: declaration '__locale' definition 'locale'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:51:16: style:inconclusive: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:161:19: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:51:16: note: Function '_nl_find_domain' argument 3 names different: declaration '__domainname' definition 'domainname'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:51:44: style:inconclusive: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:162:23: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. gbatnav-1.0.4cvs20051004.orig/intl/finddomain.c:51:44: note: Function '_nl_find_domain' argument 4 names different: declaration '__domainbinding' definition 'domainbinding'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:544:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:583:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:940:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:427:25: style:inconclusive: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:210:46: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:427:25: note: Function 'libintl_dcigettext' argument 1 names different: declaration '__domainname' definition 'domainname'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:427:49: style:inconclusive: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:211:18: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:427:49: note: Function 'libintl_dcigettext' argument 2 names different: declaration '__msgid1' definition 'msgid1'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:427:69: style:inconclusive: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:211:40: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:427:69: note: Function 'libintl_dcigettext' argument 3 names different: declaration '__msgid2' definition 'msgid2'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:428:10: style:inconclusive: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:212:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:428:10: note: Function 'libintl_dcigettext' argument 4 names different: declaration '__plural' definition 'plural'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:428:36: style:inconclusive: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:212:38: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:428:36: note: Function 'libintl_dcigettext' argument 5 names different: declaration '__n' definition 'n'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:428:43: style:inconclusive: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:213:10: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:428:43: note: Function 'libintl_dcigettext' argument 6 names different: declaration '__category' definition 'category'. gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:533:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:224:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:227:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:230:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:233:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:236:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:237:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/dcigettext.c:240:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] gbatnav-1.0.4cvs20051004.orig/intl/l10nflist.c:341:12: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/intl/localcharset.c:127:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/localealias.c:163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/localcharset.c:306:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] gbatnav-1.0.4cvs20051004.orig/intl/localcharset.c:297:24: note: Assignment 'locale=NULL', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/localcharset.c:306:14: note: Condition 'locale==NULL' is always true gbatnav-1.0.4cvs20051004.orig/intl/localealias.c:154:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/intl/localealias.c:254:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/intl/localealias.c:255:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/intl/localealias.c:172:41: error: Uninitialized variable: &item.value [uninitvar] gbatnav-1.0.4cvs20051004.orig/intl/ngettext.c:59:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_MESSAGES [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:61:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_libdir [nullPointerOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:43: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:61:19: note: Null pointer dereference gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:75:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localealiaspath [nullPointerOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:52: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:75:19: note: Null pointer dereference gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:89:19: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:46: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:89:19: note: Null pointer dereference gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:96:15: warning: If memory allocation fails, then there is a possible null pointer dereference: _nlos2_localedir [nullPointerOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:46: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:96:15: note: Null pointer dereference gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:43: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:62:33: note: Null pointer addition gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:52: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:76:42: note: Null pointer addition gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:46: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:90:36: note: Null pointer addition gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:51:9: style: Variable 'root' can be declared as pointer to const [constVariablePointer] plural.y:160:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:276:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] /home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple:517:36: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] /home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple:515:9: style: Variable 'yyss1' can be declared as pointer to const [constVariablePointer] gbatnav-1.0.4cvs20051004.orig/intl/xsize.h:60:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/printf-parse.c:146:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:982:2: error: Resource leak: fd [resourceLeak] gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:975:12: style: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. [knownConditionTrueFalse] gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:919:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:975:12: note: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:771:47: style:inconclusive: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:169:59: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:771:47: note: Function '_nl_init_domain_conv' argument 1 names different: declaration '__domain_file' definition 'domain_file'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:772:31: style:inconclusive: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:170:29: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:772:31: note: Function '_nl_init_domain_conv' argument 2 names different: declaration '__domain' definition 'domain'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:773:25: style:inconclusive: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:171:23: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:773:25: note: Function '_nl_init_domain_conv' argument 3 names different: declaration '__domainbinding' definition 'domainbinding'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:889:45: style:inconclusive: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:173:50: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:889:45: note: Function '_nl_free_domain_conv' argument 1 names different: declaration '__domain' definition 'domain'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:909:42: style:inconclusive: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:164:47: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:909:42: note: Function '_nl_load_domain' argument 1 names different: declaration '__domain' definition 'domain_file'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:910:20: style:inconclusive: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. [funcArgNamesDifferent] gbatnav-1.0.4cvs20051004.orig/intl/gettextP.h:165:25: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. gbatnav-1.0.4cvs20051004.orig/intl/loadmsgcat.c:910:20: note: Function '_nl_load_domain' argument 2 names different: declaration '__domainbinding' definition 'domainbinding'. gbatnav-1.0.4cvs20051004.orig/intl/vasnprintf.c:122:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/printf.c:116:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gbatnav-1.0.4cvs20051004.orig/intl/vasnprintf.c:748:12: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] diff: 2.17.0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:62:33: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:43: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:62:33: note: Null pointer addition head gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:62:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:43: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:60:27: note: Assignment '_nlos2_libdir=(char*)malloc(sl+strlen(LIBDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:62:33: note: Null pointer addition 2.17.0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:76:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:52: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:76:42: note: Null pointer addition head gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:76:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:52: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:74:36: note: Assignment '_nlos2_localealiaspath=(char*)malloc(sl+strlen(LOCALE_ALIAS_PATH)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:76:42: note: Null pointer addition 2.17.0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:90:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:46: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:90:36: note: Null pointer addition head gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:90:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:46: note: Assuming allocation function fails gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:88:30: note: Assignment '_nlos2_localedir=(char*)malloc(sl+strlen(LOCALEDIR)+1)', assigned value is 0 gbatnav-1.0.4cvs20051004.orig/intl/os2compat.c:90:36: note: Null pointer addition DONE