2026-05-03 13:54 ftp://ftp.de.debian.org/debian/pool/main/m/mokomaze/mokomaze_0.7.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sdl --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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 121 126 elapsed-time: 3.5 3.1 head-timing-info: old-timing-info: head results: mokomaze-0.7.1/src/gui/gui_font.cpp:26:7: warning: Member variable 'Font::ascent' is not initialized in the constructor. [uninitMemberVar] mokomaze-0.7.1/src/gui/gui_font.cpp:79:81: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] mokomaze-0.7.1/src/gui/gui_msgbox.cpp:30:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_msgbox.cpp:62:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CENTER [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mTabs [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:171:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_EPSILON [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:313:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mDroppedDown [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:330:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mDroppedDown [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:346:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOW_AUTO [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:851:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_KEYDOWN [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:946:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FONT_PATH [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:1266:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/gui/gui_settings.cpp:647:10: style: Either there is a missing 'override', or the member function 'SaveActionListener::action' can be static. [functionStatic] mokomaze-0.7.1/src/gui/gui_settings.cpp:655:10: style: Either there is a missing 'override', or the member function 'GeomMaxActionListener::action' can be static. [functionStatic] mokomaze-0.7.1/src/gui/gui_settings.cpp:663:10: style: Either there is a missing 'override', or the member function 'InputTypeActionListener::action' can be static. [functionStatic] mokomaze-0.7.1/src/gui/gui_settings.cpp:671:10: style: Either there is a missing 'override', or the member function 'VibroTypeActionListener::action' can be static. [functionStatic] mokomaze-0.7.1/src/gui/gui_settings.cpp:204:17: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < int >::getElementAt' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:209:9: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < int >::getNumberOfElements' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:214:7: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < int >::getValueAt' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:220:9: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < int >::findValueId' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:204:17: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < float >::getElementAt' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:209:9: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < float >::getNumberOfElements' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:214:7: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < float >::getValueAt' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:220:9: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < float >::findValueId' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:204:17: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < std :: string >::getElementAt' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:209:9: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < std :: string >::getNumberOfElements' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:214:7: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < std :: string >::getValueAt' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:220:9: style:inconclusive: Either there is a missing 'override', or the member function 'GenericListModel < std :: string >::findValueId' can be const. [functionConst] mokomaze-0.7.1/src/gui/gui_settings.cpp:199:5: style: Class 'GenericListModel < int >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mokomaze-0.7.1/src/gui/gui_settings.cpp:199:5: style: Class 'GenericListModel < float >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mokomaze-0.7.1/src/gui/gui_settings.cpp:199:5: style: Class 'GenericListModel < std :: string >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] mokomaze-0.7.1/src/gui/gui_settings.cpp:559:72: style: Condition 'user_set_new->geom_x==0' is always true [knownConditionTrueFalse] mokomaze-0.7.1/src/gui/gui_settings.cpp:559:43: note: Assuming that condition 'user_set_new->geom_x==0' is not redundant mokomaze-0.7.1/src/gui/gui_settings.cpp:559:72: note: Condition 'user_set_new->geom_x==0' is always true mokomaze-0.7.1/src/gui/gui_settings.cpp:1264:5: style: Exception should be caught by reference. [catchExceptionByValue] mokomaze-0.7.1/src/gui/gui_settings.cpp:559:48: style: Same expression on both sides of '&&'. [duplicateExpression] mokomaze-0.7.1/src/gui/gui_settings.cpp:174:33: performance: Function parameter 'x' should be passed by const reference. [passedByValue] mokomaze-0.7.1/src/gui/gui_settings.cpp:174:48: performance: Function parameter 'y' should be passed by const reference. [passedByValue] mokomaze-0.7.1/src/gui/gui_settings.cpp:188:51: performance: Function parameter '_value' should be passed by const reference. [passedByValue] mokomaze-0.7.1/src/gui/gui_settings.cpp:224:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] mokomaze-0.7.1/src/input/input_accel.c:64:11: style: Local variable 'finished' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/input/input_accel.c:58:13: note: Shadowed declaration mokomaze-0.7.1/src/input/input_accel.c:64:11: note: Shadow variable mokomaze-0.7.1/src/input/input_accel.c:64:11: style: Variable 'finished' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/input/input_accel.c:180:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'input_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_accel.c:197:22: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_accel.c:180:32: note: Parameter 'data' can be declared as pointer to const mokomaze-0.7.1/src/input/input_accel.c:184:61: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/input/input_calibration.c:48:53: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/input/input_dummy.c:31:31: style: Parameter 'x' can be declared as pointer to const. However it seems that 'input_read' is a callback function, if 'x' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_dummy.c:43:20: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_dummy.c:31:31: note: Parameter 'x' can be declared as pointer to const mokomaze-0.7.1/src/input/input_dummy.c:31:41: style: Parameter 'y' can be declared as pointer to const. However it seems that 'input_read' is a callback function, if 'y' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_dummy.c:43:20: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_dummy.c:31:41: note: Parameter 'y' can be declared as pointer to const mokomaze-0.7.1/src/input/input_dummy.c:31:51: style: Parameter 'z' can be declared as pointer to const. However it seems that 'input_read' is a callback function, if 'z' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_dummy.c:43:20: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_dummy.c:31:51: note: Parameter 'z' can be declared as pointer to const mokomaze-0.7.1/src/input/input_dummy.c:35:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'input_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_dummy.c:44:22: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_dummy.c:35:32: note: Parameter 'data' can be declared as pointer to const mokomaze-0.7.1/src/input/input_joystick.c:47:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/input/input_joystick.c:42:11: style: Local variable 'finished' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/input/input_joystick.c:36:13: note: Shadowed declaration mokomaze-0.7.1/src/input/input_joystick.c:42:11: note: Shadow variable mokomaze-0.7.1/src/input/input_joystick.c:42:11: style: Variable 'finished' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/input/input_joystick.c:139:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'input_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_joystick.c:156:22: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_joystick.c:139:32: note: Parameter 'data' can be declared as pointer to const mokomaze-0.7.1/src/input/input_joystick.c:143:67: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/input/input_joystick_sdl.c:30:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ENABLE [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/input/input_joystick_sdl.c:36:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_DISABLE [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/input/input_joystick_sdl.c:56:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'input_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_joystick_sdl.c:66:22: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_joystick_sdl.c:56:32: note: Parameter 'data' can be declared as pointer to const mokomaze-0.7.1/src/input/input_joystick_sdl.c:60:74: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/input/input_keyboard.c:38:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_UP [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/input/input_keyboard.c:36:12: style: Variable 'keystate' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/input/input_keyboard.c:53:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'input_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/input/input_keyboard.c:62:22: note: You might need to cast the function pointer here mokomaze-0.7.1/src/input/input_keyboard.c:53:32: note: Parameter 'data' can be declared as pointer to const mokomaze-0.7.1/src/logging.c:57:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/logging.c:33:11: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/main.c:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_AUDIO [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/mainwindow.c:188:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/mainwindow.c:515:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FONT_PATH [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/mainwindow.c:88:35: style: Parameter 'file_hash' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/mainwindow.c:91:20: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:171:19: style: Variable 'state' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:253:52: style: Parameter 'param' can be declared as pointer to const. However it seems that 'fastchange_callback' is a callback function, if 'param' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/mainwindow.c:785:82: note: You might need to cast the function pointer here mokomaze-0.7.1/src/mainwindow.c:253:52: note: Parameter 'param' can be declared as pointer to const mokomaze-0.7.1/src/mainwindow.c:567:18: style: Variable 'back_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:568:18: style: Variable 'forward_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:569:18: style: Variable 'settings_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:570:18: style: Variable 'exit_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:572:18: style: Variable 'back_i_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:573:18: style: Variable 'forward_i_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:575:18: style: Variable 'back_p_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/mainwindow.c:576:18: style: Variable 'forward_p_pic' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/matrix.c:38:9: warning: If memory allocation fails, then there is a possible null pointer dereference: minor [nullPointerOutOfMemory] mokomaze-0.7.1/src/matrix.c:36:27: note: Assuming allocation function fails mokomaze-0.7.1/src/matrix.c:36:27: note: Assignment 'minor=malloc((order-1)*sizeof(float*))', assigned value is 0 mokomaze-0.7.1/src/matrix.c:38:9: note: Null pointer dereference mokomaze-0.7.1/src/matrix.c:88:16: warning: If memory allocation fails, then there is a possible null pointer dereference: mat [nullPointerOutOfMemory] mokomaze-0.7.1/src/matrix.c:94:27: note: Assuming allocation function fails mokomaze-0.7.1/src/matrix.c:94:27: note: Assignment 'minor=malloc(sizeof(float*)*(order-1))', assigned value is 0 mokomaze-0.7.1/src/matrix.c:103:59: note: Calling function 'CalcDeterminant', 1st argument 'minor' value is 0 mokomaze-0.7.1/src/matrix.c:88:16: note: Null pointer dereference mokomaze-0.7.1/src/matrix.c:96:9: warning: If memory allocation fails, then there is a possible null pointer dereference: minor [nullPointerOutOfMemory] mokomaze-0.7.1/src/matrix.c:94:27: note: Assuming allocation function fails mokomaze-0.7.1/src/matrix.c:94:27: note: Assignment 'minor=malloc(sizeof(float*)*(order-1))', assigned value is 0 mokomaze-0.7.1/src/matrix.c:96:9: note: Null pointer dereference mokomaze-0.7.1/src/matrix.c:108:14: warning: If memory allocation fails, then there is a possible null pointer dereference: minor [nullPointerOutOfMemory] mokomaze-0.7.1/src/matrix.c:94:27: note: Assuming allocation function fails mokomaze-0.7.1/src/matrix.c:94:27: note: Assignment 'minor=malloc(sizeof(float*)*(order-1))', assigned value is 0 mokomaze-0.7.1/src/matrix.c:108:14: note: Null pointer dereference mokomaze-0.7.1/src/matrix.c:38:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mokomaze-0.7.1/src/matrix.c:35:25: note: Assuming allocation function fails mokomaze-0.7.1/src/matrix.c:35:25: note: Assignment 'temp=malloc((order-1)*(order-1)*sizeof(float))', assigned value is 0 mokomaze-0.7.1/src/matrix.c:38:25: note: Null pointer addition mokomaze-0.7.1/src/matrix.c:61:18: style: Variable 'colCount' is assigned a value that is never used. [unreadVariable] mokomaze-0.7.1/src/mazecore/mazecore.c:191:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/mazecore/mazecore.c:141:19: style: Local variable 'dist' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/mazecore/mazecore.c:125:11: note: Shadowed declaration mokomaze-0.7.1/src/mazecore/mazecore.c:141:19: note: Shadow variable mokomaze-0.7.1/src/mazecore/mazecore.c:158:23: style: Local variable 'dist' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/mazecore/mazecore.c:125:11: note: Shadowed declaration mokomaze-0.7.1/src/mazecore/mazecore.c:158:23: note: Shadow variable mokomaze-0.7.1/src/misc/IMG_SavePNG.c:28:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_MASK_COLOR [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:40:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:45:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:64:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:20:13: style: Variable 'src' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:26:52: style: Parameter 'surface' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:50:33: style: Parameter 'face' can be declared as pointer to const [constParameterPointer] mokomaze-0.7.1/src/misc/IMG_SavePNG.c:22:6: style: Variable 'src' is assigned a value that is never used. [unreadVariable] mokomaze-0.7.1/src/paramsloader.c:65:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_NODE_ARRAY [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:91:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_BOOLEAN [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:112:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_DOUBLE [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:122:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:132:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_BOOLEAN [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:142:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:149:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_DOUBLE [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:156:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:244:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:449:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:558:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:619:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:701:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/paramsloader.c:289:29: style: Local variable 'box_object' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/paramsloader.c:264:17: note: Shadowed declaration mokomaze-0.7.1/src/paramsloader.c:289:29: note: Shadow variable mokomaze-0.7.1/src/paramsloader.c:308:29: style: Local variable 'hole_object' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/paramsloader.c:258:17: note: Shadowed declaration mokomaze-0.7.1/src/paramsloader.c:308:29: note: Shadow variable mokomaze-0.7.1/src/paramsloader.c:325:29: style: Local variable 'key_object' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/paramsloader.c:261:17: note: Shadowed declaration mokomaze-0.7.1/src/paramsloader.c:325:29: note: Shadow variable mokomaze-0.7.1/src/paramsloader.c:426:11: style: Variable 'pHome' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/paramsloader.c:470:11: style: Variable 'fullscreen_mode_str' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/paramsloader.c:485:11: style: Variable 'input_type_str' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/paramsloader.c:506:11: style: Variable 'vibro_type_str' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/render.c:655:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] mokomaze-0.7.1/src/render.c:48:9: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] mokomaze-0.7.1/src/render.c:46:17: note: Assuming allocation function fails mokomaze-0.7.1/src/render.c:46:17: note: Assignment 'res=malloc(mi*su)', assigned value is 0 mokomaze-0.7.1/src/render.c:48:9: note: Null pointer dereference mokomaze-0.7.1/src/render.c:172:17: style: Local variable 'a' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/render.c:366:16: note: Shadowed declaration mokomaze-0.7.1/src/render.c:172:17: note: Shadow variable mokomaze-0.7.1/src/render.c:291:18: style: Local variable 'i' shadows outer variable [shadowVariable] mokomaze-0.7.1/src/render.c:287:14: note: Shadowed declaration mokomaze-0.7.1/src/render.c:291:18: note: Shadow variable mokomaze-0.7.1/src/render.c:289:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] mokomaze-0.7.1/src/vibro/vibro_freerunner.c:62:47: style: Parameter 'param' can be declared as pointer to const. However it seems that 'callback' is a callback function, if 'param' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mokomaze-0.7.1/src/vibro/vibro_freerunner.c:81:49: note: You might need to cast the function pointer here mokomaze-0.7.1/src/vibro/vibro_freerunner.c:62:47: note: Parameter 'param' can be declared as pointer to const mokomaze-0.7.1/src/vibro/vibro_freerunner.c:94:71: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] diff: 2.20.0 mokomaze-0.7.1/src/mainwindow.c:105:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cached_file_full [nullPointerOutOfMemory] mokomaze-0.7.1/src/mainwindow.c:103:51: note: Assuming allocation function fails mokomaze-0.7.1/src/mainwindow.c:103:38: note: Assignment 'cached_file_full=(char*)malloc(strlen(cache_dir_full)+strlen("/")+strlen(entry->d_name)+1)', assigned value is 0 mokomaze-0.7.1/src/mainwindow.c:105:20: note: Null pointer dereference 2.20.0 mokomaze-0.7.1/src/paramsloader.c:438:47: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: save_dir_full [nullPointerOutOfMemory] mokomaze-0.7.1/src/paramsloader.c:436:38: note: Assuming allocation function fails mokomaze-0.7.1/src/paramsloader.c:436:25: note: Assignment 'save_dir_full=(char*)malloc(strlen(pHome)+strlen("/")+strlen(".mokomaze")+1)', assigned value is 0 mokomaze-0.7.1/src/paramsloader.c:438:47: note: Null pointer dereference 2.20.0 mokomaze-0.7.1/src/paramsloader.c:439:42: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: save_dir_full [nullPointerOutOfMemory] mokomaze-0.7.1/src/paramsloader.c:436:38: note: Assuming allocation function fails mokomaze-0.7.1/src/paramsloader.c:436:25: note: Assignment 'save_dir_full=(char*)malloc(strlen(pHome)+strlen("/")+strlen(".mokomaze")+1)', assigned value is 0 mokomaze-0.7.1/src/paramsloader.c:439:42: note: Null pointer dereference 2.20.0 mokomaze-0.7.1/src/paramsloader.c:440:47: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: save_dir_full [nullPointerOutOfMemory] mokomaze-0.7.1/src/paramsloader.c:436:38: note: Assuming allocation function fails mokomaze-0.7.1/src/paramsloader.c:436:25: note: Assignment 'save_dir_full=(char*)malloc(strlen(pHome)+strlen("/")+strlen(".mokomaze")+1)', assigned value is 0 mokomaze-0.7.1/src/paramsloader.c:440:47: note: Null pointer dereference 2.20.0 mokomaze-0.7.1/src/paramsloader.c:441:42: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: save_dir_full [nullPointerOutOfMemory] mokomaze-0.7.1/src/paramsloader.c:436:38: note: Assuming allocation function fails mokomaze-0.7.1/src/paramsloader.c:436:25: note: Assignment 'save_dir_full=(char*)malloc(strlen(pHome)+strlen("/")+strlen(".mokomaze")+1)', assigned value is 0 mokomaze-0.7.1/src/paramsloader.c:441:42: note: Null pointer dereference DONE