2025-05-06 08:45 ftp://ftp.de.debian.org/debian/pool/main/m/morse-simulator/morse-simulator_1.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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: 581f101 (2025-05-05 21:13:30 +0200) count: 198 195 elapsed-time: 37.1 38.2 head-timing-info: old-timing-info: head results: morse-1.4/examples/clients/arm/pocolibs_lwr_client.cpp:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/arm/pocolibs_lwr_client.cpp:124:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:181:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/atrv_destination-1.0.cpp:61:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/atrv_destination-1.0.cpp:139:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/arm/pocolibs_lwr_client.cpp:130:19: style: Parameter 'program_name' can be declared as pointer to const [constParameterPointer] morse-1.4/examples/clients/arm/pocolibs_lwr_client.cpp:30:7: style: Unused variable: cmd [unusedVariable] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:44:8: style: The scope of the variable 'cmd' can be reduced. [variableScope] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:189:19: style: Parameter 'program_name' can be declared as pointer to const [constParameterPointer] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:46:10: style: Variable 'port_prefix' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:88:10: style: Variable 'ax' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:88:17: style: Variable 'ay' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/atrv/agv_motion-1.0.cpp:88:24: style: Variable 'az' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/atrv/pocolibs_movement_client.cpp:47:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENPOS_CART_SPEED [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/pocolibs_movement_client.cpp:99:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/pocolibs_movement_client.cpp:19:7: style: The scope of the variable 'cmd' can be reduced. [variableScope] morse-1.4/examples/clients/atrv/atrv_destination-1.0.cpp:30:10: style: The scope of the variable 'component_name' can be reduced. [variableScope] morse-1.4/examples/clients/atrv/pocolibs_movement_client.cpp:105:19: style: Parameter 'program_name' can be declared as pointer to const [constParameterPointer] morse-1.4/examples/clients/atrv/atrv_destination-1.0.cpp:147:19: style: Parameter 'program_name' can be declared as pointer to const [constParameterPointer] morse-1.4/examples/clients/atrv/atrv_destination-1.0.cpp:43:20: style: Variable 'component_name' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/atrv/atrv_destination-1.0.cpp:51:8: style: Unused variable: cmd [unusedVariable] morse-1.4/examples/clients/atrv/pocolibs_platine_client.cpp:49:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POM_SE_POSTER [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/pocolibs_platine_client.cpp:86:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/atrv/pocolibs_platine_client.cpp:92:19: style: Parameter 'program_name' can be declared as pointer to const [constParameterPointer] morse-1.4/examples/clients/atrv/pocolibs_platine_client.cpp:19:7: style: Unused variable: cmd [unusedVariable] morse-1.4/examples/clients/ressac/ressac_client.cpp:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/ressac/ressac_client.cpp:165:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:212:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/scene/scene_init-2.0.cpp:52:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/scene/scene_init-2.0.cpp:111:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:114:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:39:31: style: Variable 'ressac_rotation_port' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:112:21: style: Variable 'clockTime' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:28:8: style: Unused variable: cmd [unusedVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:39:10: style: Variable 'ressac_rotation_port' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:112:12: style: Variable 'clockTime' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:138:21: style: Variable 'stx' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:139:21: style: Variable 'sty' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/playerRessac/playerRessac.cpp:140:21: style: Variable 'stz' is assigned a value that is never used. [unreadVariable] morse-1.4/examples/clients/scene/scene_init-2.0.cpp:42:10: style: The scope of the variable 'incomingBottle' can be reduced. [variableScope] morse-1.4/examples/clients/scene/scene_init-2.0.cpp:119:19: style: Parameter 'program_name' can be declared as pointer to const [constParameterPointer] morse-1.4/examples/clients/scene/scene_init-2.0.cpp:38:9: style: Unused variable: command [unusedVariable] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:43:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Spix3DImage [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:90:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POSTER_WRITE [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:153:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:291:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyType_GenericNew [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:45:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VELODYNE_3D_IMAGE_WIDTH [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:92:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyBUF_SIMPLE [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:256:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:394:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyType_GenericNew [valueFlowBailoutIncompleteVar] morse-1.4/examples/clients/ressac/ressac_client.cpp:27:8: style: The scope of the variable 'cmd' can be reduced. [variableScope] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:304:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:307:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:55:2: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:230:39: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:230:55: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:230:71: style: Parameter 'kwds' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/stereopixel.c:37:15: style: Unused variable: images [unusedVariable] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:58:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIAM_CAL_MONO [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:106:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIAM_ID_MAX [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:145:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ViamImageBank [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:227:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POM_EULER [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:320:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POSTER_WRITE [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:348:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:547:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyType_GenericNew [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:563:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:566:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:569:2: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:173:2: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:245:42: style: Parameter 'image_data' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:323:18: style: Variable 'img' can be declared as pointer to const [constVariablePointer] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:435:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:435:51: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:435:67: style: Parameter 'kwds' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:256:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:256:12: style: Variable 'len' is assigned a value that is never used. [unreadVariable] morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:307:12: style: Unused variable: spec [unusedVariable] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:407:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:410:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:65:2: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:333:33: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:333:49: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:333:65: style: Parameter 'kwds' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/middleware/pocolibs/sensors/velodyne.c:38:15: style: Unused variable: images [unusedVariable] morse-1.4/src/morse/sensors/zbufferto3d.c:129:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyBUF_READ [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/zbufferto3d.c:228:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/sensors/zbufferto3d.c:129:36: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] morse-1.4/src/morse/sensors/zbufferto3d.c:41:13: warning: Redundant code: Found unused member access. [constStatement] morse-1.4/src/morse/sensors/zbufferto3d.c:42:13: warning: Redundant code: Found unused member access. [constStatement] morse-1.4/src/morse/sensors/zbufferto3d.c:84:13: style: Variable 'fbuffer' can be declared as pointer to const [constVariablePointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:613:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nMax [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1095:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1646:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable epoch [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1918:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/zbuffertodepth.c:93:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyBUF_READ [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/zbuffertodepth.c:184:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/sensors/zbuffertodepth.c:93:36: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] morse-1.4/src/morse/sensors/zbuffertodepth.c:72:13: style: Variable 'fbuffer' can be declared as pointer to const [constVariablePointer] morse-1.4/src/morse/sensors/zbuffertodepth.c:71:11: style: Unused variable: test [unusedVariable] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1196:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1202:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1208:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1246:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1254:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1262:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1268:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1274:9: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1407:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1434:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1450:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1500:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1531:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1566:9: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2658:12: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2629:8: note: outer condition: !Error_Code morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2658:12: note: identical inner condition: !Error_Code morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3420:34: style: Condition 'n!=m' is always true [knownConditionTrueFalse] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3410:18: note: Assuming that condition 'n==m' is not redundant morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3420:34: note: Condition 'n!=m' is always true morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3598:8: style: Condition 'PcupS' is always true [knownConditionTrueFalse] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3747:8: style: Condition 'PcupS' is always true [knownConditionTrueFalse] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1726:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1795:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1202:9: error: Memory leak: LegendreFunction [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1208:9: error: Memory leak: LegendreFunction [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1254:9: error: Memory leak: MagneticModel [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1262:9: error: Memory leak: MagneticModel [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1268:9: error: Memory leak: MagneticModel [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1274:9: error: Memory leak: MagneticModel [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3262:9: error: Memory leak: f1 [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3270:9: error: Memory leak: f1 [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3270:9: error: Memory leak: PreSqr [memleak] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1299:5: warning: If memory allocation fails, then there is a possible null pointer dereference: SphVariables [nullPointerOutOfMemory] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1298:65: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1298:21: note: Assignment 'SphVariables=(struct MAGtype_SphericalHarmonicVariables*)calloc(1,sizeof(struct MAGtype_SphericalHarmonicVariables))', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1299:5: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1300:5: warning: If memory allocation fails, then there is a possible null pointer dereference: SphVariables [nullPointerOutOfMemory] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1298:65: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1298:21: note: Assignment 'SphVariables=(struct MAGtype_SphericalHarmonicVariables*)calloc(1,sizeof(struct MAGtype_SphericalHarmonicVariables))', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1300:5: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1301:5: warning: If memory allocation fails, then there is a possible null pointer dereference: SphVariables [nullPointerOutOfMemory] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1298:65: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1298:21: note: Assignment 'SphVariables=(struct MAGtype_SphericalHarmonicVariables*)calloc(1,sizeof(struct MAGtype_SphericalHarmonicVariables))', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1301:5: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1583:13: warning: If resource allocation fails, then there is a possible null pointer dereference: OUT [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1582:16: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1582:16: note: Assignment 'OUT=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1583:13: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1595:12: warning: If resource allocation fails, then there is a possible null pointer dereference: OUT [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1582:16: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1582:16: note: Assignment 'OUT=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1595:12: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1609:13: warning: If resource allocation fails, then there is a possible null pointer dereference: OUT [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1608:16: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1608:16: note: Assignment 'OUT=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1609:13: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1621:12: warning: If resource allocation fails, then there is a possible null pointer dereference: OUT [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1608:16: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1608:16: note: Assignment 'OUT=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1621:12: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1634:12: warning: If resource allocation fails, then there is a possible null pointer dereference: OUT [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1622:16: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1622:16: note: Assignment 'OUT=fopen(filenameSV,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1634:12: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1648:21: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1648:21: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1649:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1649:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1650:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1650:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1651:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1651:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1652:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1652:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1653:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1653:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1654:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1654:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1655:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1655:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1656:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1656:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1657:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1657:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1658:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1658:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1659:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1659:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1660:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1660:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1661:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1661:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1662:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1662:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1663:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1663:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1664:11: warning: If resource allocation fails, then there is a possible null pointer dereference: SHDF_file [nullPointerOutOfResources] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1642:19: note: Assignment 'SHDF_file=fopen(filename,"w")', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1664:11: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1901:17: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1873:33: note: Assuming allocation function fails morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1873:18: note: Assignment 'line=(char*)malloc(1024)', assigned value is 0 morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1894:15: note: Assuming condition is false morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1901:17: note: Null pointer dereference morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1672:5: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1679:5: note: Found duplicate branches for 'if' and 'else'. morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1672:5: note: Found duplicate branches for 'if' and 'else'. morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1667:9: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1665:5: note: n is assigned morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1667:9: note: n is overwritten morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2228:34: style:inconclusive: Function 'MAG_DateToYear' argument 1 names different: declaration 'Calendar_Date' definition 'CalendarDate'. [funcArgNamesDifferent] morse-1.4/src/morse/sensors/GeomagnetismHeader.h:370:34: note: Function 'MAG_DateToYear' argument 1 names different: declaration 'Calendar_Date' definition 'CalendarDate'. morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2228:34: note: Function 'MAG_DateToYear' argument 1 names different: declaration 'Calendar_Date' definition 'CalendarDate'. morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2930:34: style:inconclusive: Function 'MAG_YearToDate' argument 1 names different: declaration 'Date' definition 'CalendarDate'. [funcArgNamesDifferent] morse-1.4/src/morse/sensors/GeomagnetismHeader.h:410:34: note: Function 'MAG_YearToDate' argument 1 names different: declaration 'Date' definition 'CalendarDate'. morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2930:34: note: Function 'MAG_YearToDate' argument 1 names different: declaration 'Date' definition 'CalendarDate'. morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:225:153: style: Parameter 'OutputFile' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:538:31: style: Variable 'ModelName' can be declared as const array [constVariable] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:713:56: style: Parameter 'MagneticModel' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:713:77: style: Parameter 'VersionDate' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:782:56: style: Parameter 'MagneticModel' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:782:77: style: Parameter 'VersionDate' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:883:179: style: Parameter 'Geoid' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1008:37: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1074:68: style: Parameter 'MagneticModel' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1305:64: style: Parameter 'values' can be declared as const array [constParameter] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1572:31: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1572:64: style: Parameter 'MagneticModel' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1598:31: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1598:47: style: Parameter 'filenameSV' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1598:82: style: Parameter 'MagneticModel' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1638:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1691:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1759:39: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1759:55: style: Parameter 'filenameSV' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1834:38: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1854:10: style: Variable 'paramkeys' can be declared as const array [constVariable] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2031:63: style: Parameter 'MagneticResultsGeo' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2333:34: style: Parameter 'DMSstring' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:2743:16: style: Parameter 'Acoeff' can be declared as const array [constParameter] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:3980:24: style: Parameter 'Geoid' can be declared as pointer to const [constParameterPointer] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:220:22: style: Variable 'AdjCoordGeodetic' is assigned a value that is never used. [unreadVariable] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1666:5: style: Variable 'm' is assigned a value that is never used. [unreadVariable] morse-1.4/src/morse/sensors/GeomagnetismLibrary.c:1740:22: style: Variable 'EOF_Flag' is assigned a value that is never used. [unreadVariable] morse-1.4/src/morse/sensors/magnetometer.c:48:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nMax [valueFlowBailoutIncompleteVar] morse-1.4/src/morse/sensors/magnetometer.c:162:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] morse-1.4/src/morse/sensors/magnetometer.c:84:39: error: Uninitialized variables: CoordGeodetic.HeightAboveGeoid, CoordGeodetic.UseGeoid [uninitvar] morse-1.4/src/morse/sensors/magnetometer.c:85:32: error: Uninitialized variables: UserDate.Year, UserDate.Month, UserDate.Day [uninitvar] morse-1.4/src/morse/sensors/magnetometer.c:84:39: error: Uninitialized struct member: CoordGeodetic.HeightAboveGeoid [uninitStructMember] morse-1.4/src/morse/sensors/magnetometer.c:84:39: error: Uninitialized struct member: CoordGeodetic.UseGeoid [uninitStructMember] morse-1.4/src/morse/sensors/magnetometer.c:85:32: error: Uninitialized struct member: UserDate.Year [uninitStructMember] morse-1.4/src/morse/sensors/magnetometer.c:85:32: error: Uninitialized struct member: UserDate.Month [uninitStructMember] morse-1.4/src/morse/sensors/magnetometer.c:85:32: error: Uninitialized struct member: UserDate.Day [uninitStructMember] morse-1.4/src/morse/sensors/magnetometer.c:81:54: style: Unused variable: Errors [unusedVariable] diff: head morse-1.4/examples/clients/playerRessac/playerRessac.cpp:112:12: style: Variable 'clockTime' is assigned a value that is never used. [unreadVariable] head morse-1.4/examples/clients/playerRessac/playerRessac.cpp:39:10: style: Variable 'ressac_rotation_port' is assigned a value that is never used. [unreadVariable] head morse-1.4/src/morse/middleware/pocolibs/sensors/viam.c:256:12: style: Variable 'len' is assigned a value that is never used. [unreadVariable] DONE