2025-09-01 16:01 ftp://ftp.de.debian.org/debian/pool/main/m/mate-equake-applet/mate-equake-applet_1.3.8.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=libcurl --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 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2b51b48 (2025-09-01 15:35:55 +0200) count: 2 88 elapsed-time: 0.2 7.1 head-timing-info: old-timing-info: head results: mate-equake-applet-1.3.8.2/src/equake_func.h:53:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] mate-equake-applet-1.3.8.2/src/equake_func.h:53:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 mate-equake-applet-1.3.8.2/src/equake.c:125:20: style: Parameter 'curlbuf' can be declared as pointer to const. However it seems that 'wdata' is a callback function, if 'curlbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mate-equake-applet-1.3.8.2/src/equake.c:201:46: note: You might need to cast the function pointer here mate-equake-applet-1.3.8.2/src/equake.c:125:20: note: Parameter 'curlbuf' can be declared as pointer to const 2.18.0 mate-equake-applet-1.3.8.2/src/equake.c:156:19: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake.c:156:30: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake.c:171:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_VERBOSE [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake.c:296:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake.c:98:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_SSL [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1040:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1043:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1047:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1050:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1054:10: warning: Size of pointer 'lastday' used instead of size of its data. [pointerSize] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1055:10: warning: Size of pointer 'runningday' used instead of size of its data. [pointerSize] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1056:10: warning: Size of pointer 'lastweek' used instead of size of its data. [pointerSize] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1057:10: warning: Size of pointer 'runningweek' used instead of size of its data. [pointerSize] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1059:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1062:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1066:10: warning: Size of pointer 'lasthour' used instead of size of its data. [pointerSize] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1067:10: warning: Size of pointer 'running' used instead of size of its data. [pointerSize] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:1115:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:279:43: style: Parameter 'equakedata' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:298:77: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_press_callback' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mate-equake-applet-1.3.8.2/src/equake_applet.c:365:3: note: You might need to cast the function pointer here mate-equake-applet-1.3.8.2/src/equake_applet.c:298:77: note: Parameter 'event' can be declared as pointer to const 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:303:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:374:8: style: gtk_hbox_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_HORIZONTAL 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_hbox_newCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:437:65: style: Parameter 'equakedata' can be declared as pointer to const. However it seems that 'load_details' is a callback function, if 'equakedata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mate-equake-applet-1.3.8.2/src/equake_applet.c:327:63: note: You might need to cast the function pointer here mate-equake-applet-1.3.8.2/src/equake_applet.c:437:65: note: Parameter 'equakedata' can be declared as pointer to const 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:445:56: warning: String literal compared with variable 'equakedata->equakeformat[equakedata->pos].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:457:59: warning: String literal compared with variable 'equakedata->equakeformatday[equakedata->pos].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:467:61: style: Parameter 'equakedata' can be declared as pointer to const. However it seems that 'load_map' is a callback function, if 'equakedata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mate-equake-applet-1.3.8.2/src/equake_applet.c:328:55: note: You might need to cast the function pointer here mate-equake-applet-1.3.8.2/src/equake_applet.c:467:61: note: Parameter 'equakedata' can be declared as pointer to const 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:492:70: style: Parameter 'equakedata' can be declared as pointer to const. However it seems that 'load_didyoufeelit' is a callback function, if 'equakedata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mate-equake-applet-1.3.8.2/src/equake_applet.c:329:77: note: You might need to cast the function pointer here mate-equake-applet-1.3.8.2/src/equake_applet.c:492:70: note: Parameter 'equakedata' can be declared as pointer to const 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:533:120: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:663:16: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] mate-equake-applet-1.3.8.2/src/equake_applet.c:661:17: note: Assuming allocation function fails mate-equake-applet-1.3.8.2/src/equake_applet.c:661:17: note: Assignment 'fp=fopen(equakedata->configfile,"w")', assigned value is 0 mate-equake-applet-1.3.8.2/src/equake_applet.c:663:16: note: Null pointer dereference 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:67:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] mate-equake-applet-1.3.8.2/src/equake_applet.c:65:11: note: Assuming allocation function fails mate-equake-applet-1.3.8.2/src/equake_applet.c:65:11: note: Assignment 'fp=fopen(equakedata->configfile,"w")', assigned value is 0 mate-equake-applet-1.3.8.2/src/equake_applet.c:67:10: note: Null pointer dereference 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:83:5: error: Resource leak: fp [resourceLeak] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:85:16: error: Memory leak: buf [memleak] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:868:50: style: Parameter 'equakedata' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:93:20: error: Memory leak: buf [memleak] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:95:15: error: Memory leak: buf [memleak] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:962:31: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_applet.c:962:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkRequisition [valueFlowBailoutIncompleteVar] head mate-equake-applet-1.3.8.2/src/equake_func.h:53:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head mate-equake-applet-1.3.8.2/src/equake_func.h:53:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1017:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1023:14: style: Variable 'localt' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1023:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1027:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1031:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1031:9: style: Variable 'printtime' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1035:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1066:18: style: Condition 'token!=NULL' is always true [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1110:12: style: Variable 'printtime' is assigned a value that is never used. [unreadVariable] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1113:55: style: Unused variable: new [unusedVariable] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1119:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1122:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1132:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:1132:44: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:219:21: style: Condition 'running=='\0'' is always false [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:219:21: warning: Char literal compared with pointer 'running'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:242:45: style: Parameter 'character' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:265:17: style: Variable 'dt1' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:265:23: style: Variable 'dt2' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:266:9: style: Unused variable: c [unusedVariable] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:268:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:285:14: style: Condition 'running=='\0'' is always false [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:285:14: warning: Char literal compared with pointer 'running'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:439:21: style: Condition 'running=='\0'' is always false [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:439:21: warning: Char literal compared with pointer 'running'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:45:17: style: Variable 'dt1' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:45:23: style: Variable 'dt2' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:48:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:515:41: warning: String literal compared with variable 'equakedata->equakeformatday[i].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:519:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gtk_major_version [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:539:40: warning: String literal compared with variable 'equakedata->equakeformat[i].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:553:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:557:73: style: Parameter 'tooltiptxt' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:574:45: style: Parameter 'equakedata' can be declared as pointer to const [constParameterPointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:598:17: style: Variable 'dt1' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:598:23: style: Variable 'dt2' can be declared as pointer to const [constVariablePointer] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:622:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:637:14: style: Condition 'running=='\0'' is always false [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:637:14: warning: Char literal compared with pointer 'running'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:65:14: style: Condition 'running=='\0'' is always false [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:65:14: warning: Char literal compared with pointer 'running'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:798:21: style: Condition 'running=='\0'' is always false [knownConditionTrueFalse] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:798:21: warning: Char literal compared with pointer 'running'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:840:42: warning: String literal compared with variable 'equakedata->equakeformat[pos].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:859:45: warning: String literal compared with variable 'equakedata->equakeformatday[pos].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:883:15: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:901:40: warning: String literal compared with variable 'equakedata->equakeformat[pos].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:927:50: warning: String literal compared with variable 'equakedata->equakeformatday[pos].src'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:951:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] 2.18.0 mate-equake-applet-1.3.8.2/src/equake_processdata.c:997:15: style: Expression is always true because 'else if' condition is opposite to previous condition at line 995. [multiCondition] mate-equake-applet-1.3.8.2/src/equake_processdata.c:995:15: note: first condition mate-equake-applet-1.3.8.2/src/equake_processdata.c:997:15: note: else if condition is opposite to first condition DONE