2026-07-24 17:57 ftp://ftp.de.debian.org/debian/pool/main/o/openmolcas/openmolcas_26.02.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=openmp --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 -j16 platform: Linux-7.0.0-28-generic-x86_64-with-glibc2.43 python: 3.14.4 client-version: 1.4.0 compiler: g++ (Ubuntu 15.2.0-16ubuntu1) 15.2.0 cppcheck: head 2.21.0 head-info: 1ef5ef3 (2026-07-24 19:54:54 +0200) count: 361 364 elapsed-time: 0.5 0.2 head-timing-info: old-timing-info: head results: OpenMolcas-v26.02/src/io_util/aixerr.c:54:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/allocdisk.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/ga_util/slaveschdir.c:36:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/grid_it/prt_lusc.c:49:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/filesystem_wrapper.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/filesystem_wrapper.c:88:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTW_DEPTH [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/filesystem_wrapper.c:92:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/cio.c:74:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/cio.c:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/parnell/main.c:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/misc_util/rld_r8.c:75:29: style:inconclusive: Boolean expression 'i' definition 'name'. [funcArgNamesDifferentUnnamed] OpenMolcas-v26.02/src/io_util/cio.c:261:20: style: Parameter 'FileName' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/putenvc.c:31:19: style: Parameter 'envar' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/cio.c:261:36: style: Parameter 'NewName' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/parnell/parnell_translate.c:53:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp_name [nullPointerOutOfMemory] OpenMolcas-v26.02/src/parnell/parnell_translate.c:49:34: note: Assuming allocation function fails OpenMolcas-v26.02/src/parnell/parnell_translate.c:49:20: note: Assignment 'tmp_name=(char*)malloc(4096)', assigned value is 0 OpenMolcas-v26.02/src/parnell/parnell_translate.c:53:10: note: Null pointer dereference OpenMolcas-v26.02/src/parnell/parnell_wipe.c:33:9: style: Variable 'flag' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/misc_util/rle_r8.c:48:31: style: Parameter 'n_in' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/parnell/parnell_translate.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp_name [nullPointerOutOfMemory] OpenMolcas-v26.02/src/parnell/parnell_translate.c:49:34: note: Assuming allocation function fails OpenMolcas-v26.02/src/parnell/parnell_translate.c:49:20: note: Assignment 'tmp_name=(char*)malloc(4096)', assigned value is 0 OpenMolcas-v26.02/src/parnell/parnell_translate.c:54:3: note: Null pointer dereference OpenMolcas-v26.02/src/misc_util/rle_r8.c:48:71: style: Parameter 'thr' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/misc_util/rle_r8.c:50:19: style: Variable 'ptr_16' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/misc_util/rle_r8.c:51:26: style: Variable 'mask' can be declared as const array [constVariable] OpenMolcas-v26.02/src/system_util/set_sighandlers.c:21:27: style: Parameter 'rank' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/getenvc.c:51:22: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/systemc.c:33:28: style: Parameter 'lc' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/getenvc.c:51:33: style: Parameter 'ilen' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/systemc.c:54:29: style: Parameter 'lc' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/getenvc.c:51:57: style: Parameter 'maxlen' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/getenvc.c:84:9: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/system_util/write_cc.c:19:20: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/write_rc.c:23:20: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpb.c:36:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/system_util/write_rc.c:28:8: style: Variable 'to_ascii' can be declared as const array [constVariable] OpenMolcas-v26.02/src/xml_util/xml_cdumpb.c:36:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpc.c:36:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpb.c:36:48: style: Parameter 'optx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpc.c:36:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumps.c:36:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumps.c:36:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:235:18: style: Local variable 'l' shadows outer argument [shadowArgument] OpenMolcas-v26.02/src/msym_util/msymc.c:192:63: note: Shadowed argument OpenMolcas-v26.02/src/msym_util/msymc.c:235:18: note: Shadow local variable OpenMolcas-v26.02/src/xml_util/xml_closec.c:36:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_closec.c:36:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:842:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:67:38: style: Parameter 'pctx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:62: style: Parameter 'nx_appear' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:67:49: style: Parameter 'pel' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:91: style: Parameter 'nx_units' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:67:59: style: Parameter 'puel' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:106: style: Parameter 'Level' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:67:70: style: Parameter 'uelement' can be declared as const array [constParameter] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:118: style: Parameter 'nxx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:67:96: style: Parameter 'xyz' can be declared as const array [constParameter] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:35:128: style: Parameter 'nyx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:67:111: style: Parameter 'paol' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_cdumpa.c:36:22: style: Parameter 'optx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_prspec.c:36:32: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:121:39: style: Parameter 'pctx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_openc.c:36:22: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_prspec.c:36:43: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:148:45: style: Parameter 'pctx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_openc.c:36:33: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:148:57: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_openc.c:36:61: style: Parameter 'nx_appear' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:168:26: style: Variable 'a' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/xml_util/xml_openc.c:36:90: style: Parameter 'nx_units' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/misc_util/rle_r8.c:172:11: style: Variable 'count' is assigned a value that is never used. [unreadVariable] OpenMolcas-v26.02/src/msym_util/msymc.c:192:52: style: Parameter 'pctx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_openc.c:36:105: style: Parameter 'Level' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:192:63: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_openc.c:37:21: style: Parameter 'nx_value' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/msym_util/msymc.c:267:45: style: Parameter 'pctx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:599:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] OpenMolcas-v26.02/src/mma_util/cgetmem.c:631:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] OpenMolcas-v26.02/src/mma_util/cgetmem.c:788:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] OpenMolcas-v26.02/src/mma_util/cgetmem.c:820:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] OpenMolcas-v26.02/src/mma_util/cgetmem.c:499:12: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] OpenMolcas-v26.02/src/mma_util/cgetmem.c:499:31: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:62: style: Parameter 'nx_appear' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:91: style: Parameter 'nx_units' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:106: style: Parameter 'Level' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:118: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:36:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:36:129: style: Parameter 'nxx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:36:34: style: Parameter 'nx_name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_idumpc.c:37:22: style: Parameter 'nyx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:36:62: style: Parameter 'nx_appear' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:36:91: style: Parameter 'nx_units' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:36:106: style: Parameter 'Level' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:36:121: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:37:22: style: Parameter 'nxx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:37:32: style: Parameter 'nyx' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:47:8: style: Variable 'form' can be declared as const array [constVariable] OpenMolcas-v26.02/src/xml_util/xml_ddumpc.c:48:8: style: Variable 'mform' can be declared as const array [constVariable] OpenMolcas-v26.02/src/mma_util/cgetmem.c:153:18: style: Parameter 'MOLCASMEM' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:304:16: style: Parameter 'datatype' can be declared as const array [constParameter] OpenMolcas-v26.02/src/mma_util/cgetmem.c:343:22: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:366:24: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:376:44: style: Parameter 'tmp' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:656:36: style: Parameter 'lbl' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:656:47: style: Parameter 'typ' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:656:57: style: Parameter 'offset' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:656:70: style: Parameter 'len' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/mma_util/cgetmem.c:666:25: style: Parameter 'func' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:665:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:657:14: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:665:10: note: status is overwritten OpenMolcas-v26.02/src/mma_util/cgetmem.c:666:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:662:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:661:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:662:12: note: status is overwritten OpenMolcas-v26.02/src/mma_util/cgetmem.c:666:49: style: Parameter 'Op' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:665:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:662:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:665:10: note: status is overwritten OpenMolcas-v26.02/src/mma_util/cgetmem.c:666:59: style: Parameter 'dtyp' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:708:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:684:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:708:10: note: status is overwritten OpenMolcas-v26.02/src/mma_util/cgetmem.c:671:24: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:702:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:699:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:702:12: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:705:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:702:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:705:12: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:706:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:705:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:706:12: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:708:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:706:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:708:10: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:746:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:722:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:746:10: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:740:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:737:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:740:12: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:743:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:740:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:743:12: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:744:12: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:743:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:744:12: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:746:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:744:12: note: status is assigned OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:746:10: note: status is overwritten OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:256:37: style:inconclusive: Function 'mh5c_create_attr_scalar_int' argument 1 names different: declaration 'obj_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:77:37: note: Function 'mh5c_create_attr_scalar_int' argument 1 names different: declaration 'obj_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:256:37: note: Function 'mh5c_create_attr_scalar_int' argument 1 names different: declaration 'obj_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:260:38: style:inconclusive: Function 'mh5c_create_attr_scalar_real' argument 1 names different: declaration 'obj_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:78:38: note: Function 'mh5c_create_attr_scalar_real' argument 1 names different: declaration 'obj_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:260:38: note: Function 'mh5c_create_attr_scalar_real' argument 1 names different: declaration 'obj_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:264:37: style:inconclusive: Function 'mh5c_create_attr_scalar_str' argument 1 names different: declaration 'obj_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:79:37: note: Function 'mh5c_create_attr_scalar_str' argument 1 names different: declaration 'obj_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:264:37: note: Function 'mh5c_create_attr_scalar_str' argument 1 names different: declaration 'obj_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:428:34: style:inconclusive: Function 'mh5c_put_dset_scalar_int' argument 1 names different: declaration 'dest_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:113:34: note: Function 'mh5c_put_dset_scalar_int' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:428:34: note: Function 'mh5c_put_dset_scalar_int' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/mma_util/cgetmem.c:216:21: error: Signed integer overflow for expression '1000000*factor'. [integerOverflow] OpenMolcas-v26.02/src/mma_util/cgetmem.c:207:23: note: Assignment 'factor=1024*1024', assigned value is 1048576 OpenMolcas-v26.02/src/mma_util/cgetmem.c:216:21: note: Integer overflow OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:432:35: style:inconclusive: Function 'mh5c_put_dset_scalar_real' argument 1 names different: declaration 'dest_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:114:35: note: Function 'mh5c_put_dset_scalar_real' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:432:35: note: Function 'mh5c_put_dset_scalar_real' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/mma_util/cgetmem.c:280:18: error: Signed integer overflow for expression '1000000*factor'. [integerOverflow] OpenMolcas-v26.02/src/mma_util/cgetmem.c:271:23: note: Assignment 'factor=1024*1024', assigned value is 1048576 OpenMolcas-v26.02/src/mma_util/cgetmem.c:280:18: note: Integer overflow OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:436:34: style:inconclusive: Function 'mh5c_put_dset_scalar_str' argument 1 names different: declaration 'dest_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:115:34: note: Function 'mh5c_put_dset_scalar_str' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:436:34: note: Function 'mh5c_put_dset_scalar_str' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:479:34: style:inconclusive: Function 'mh5c_get_dset_scalar_int' argument 1 names different: declaration 'dest_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:122:34: note: Function 'mh5c_get_dset_scalar_int' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:479:34: note: Function 'mh5c_get_dset_scalar_int' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:483:35: style:inconclusive: Function 'mh5c_get_dset_scalar_real' argument 1 names different: declaration 'dest_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:123:35: note: Function 'mh5c_get_dset_scalar_real' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:483:35: note: Function 'mh5c_get_dset_scalar_real' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:487:34: style:inconclusive: Function 'mh5c_get_dset_scalar_str' argument 1 names different: declaration 'dest_id' definition 'dset_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:124:34: note: Function 'mh5c_get_dset_scalar_str' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:487:34: note: Function 'mh5c_get_dset_scalar_str' argument 1 names different: declaration 'dest_id' definition 'dset_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:579:37: style:inconclusive: Function 'mh5c_create_attr_scalar' argument 1 names different: declaration 'file_id' definition 'obj_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:142:37: note: Function 'mh5c_create_attr_scalar' argument 1 names different: declaration 'file_id' definition 'obj_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:579:37: note: Function 'mh5c_create_attr_scalar' argument 1 names different: declaration 'file_id' definition 'obj_id'. OpenMolcas-v26.02/src/mma_util/cgetmem.c:786:28: warning: Uninitialized variable: *len [uninitvar] OpenMolcas-v26.02/src/mma_util/cgetmem.c:841:42: note: Calling function 'c_getmem', 5th argument '&len' value is OpenMolcas-v26.02/src/mma_util/cgetmem.c:786:28: note: Uninitialized variable: *len OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:587:36: style:inconclusive: Function 'mh5c_create_attr_array' argument 1 names different: declaration 'file_id' definition 'obj_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:143:36: note: Function 'mh5c_create_attr_array' argument 1 names different: declaration 'file_id' definition 'obj_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:587:36: note: Function 'mh5c_create_attr_array' argument 1 names different: declaration 'file_id' definition 'obj_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:601:28: style:inconclusive: Function 'mh5c_put_attr' argument 1 names different: declaration 'dset_id' definition 'attr_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:144:28: note: Function 'mh5c_put_attr' argument 1 names different: declaration 'dset_id' definition 'attr_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:601:28: note: Function 'mh5c_put_attr' argument 1 names different: declaration 'dset_id' definition 'attr_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:601:43: style:inconclusive: Function 'mh5c_put_attr' argument 2 names different: declaration 'value' definition 'buffer'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:144:43: note: Function 'mh5c_put_attr' argument 2 names different: declaration 'value' definition 'buffer'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:601:43: note: Function 'mh5c_put_attr' argument 2 names different: declaration 'value' definition 'buffer'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:601:57: style:inconclusive: Function 'mh5c_put_attr' argument 3 names different: declaration 'value_type' definition 'buffer_type'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:144:56: note: Function 'mh5c_put_attr' argument 3 names different: declaration 'value_type' definition 'buffer_type'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:601:57: note: Function 'mh5c_put_attr' argument 3 names different: declaration 'value_type' definition 'buffer_type'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:608:28: style:inconclusive: Function 'mh5c_get_attr' argument 1 names different: declaration 'dset_id' definition 'attr_id'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:145:28: note: Function 'mh5c_get_attr' argument 1 names different: declaration 'dset_id' definition 'attr_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:608:28: note: Function 'mh5c_get_attr' argument 1 names different: declaration 'dset_id' definition 'attr_id'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:608:43: style:inconclusive: Function 'mh5c_get_attr' argument 2 names different: declaration 'value' definition 'buffer'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:145:43: note: Function 'mh5c_get_attr' argument 2 names different: declaration 'value' definition 'buffer'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:608:43: note: Function 'mh5c_get_attr' argument 2 names different: declaration 'value' definition 'buffer'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:608:57: style:inconclusive: Function 'mh5c_get_attr' argument 3 names different: declaration 'value_type' definition 'buffer_type'. [funcArgNamesDifferent] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:145:56: note: Function 'mh5c_get_attr' argument 3 names different: declaration 'value_type' definition 'buffer_type'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:608:57: note: Function 'mh5c_get_attr' argument 3 names different: declaration 'value_type' definition 'buffer_type'. OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:184:13: style: Local variable 'block_size' shadows outer variable [shadowVariable] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:176:11: note: Shadowed variable OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:184:13: note: Shadow local variable OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:275:72: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:278:73: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:281:72: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:387:72: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:390:73: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:393:72: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:403:76: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:406:77: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:409:76: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:445:47: style: Parameter 'extents' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:445:61: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:449:48: style: Parameter 'extents' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:449:62: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:453:47: style: Parameter 'extents' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:453:61: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:496:47: style: Parameter 'extents' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:496:61: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:499:48: style: Parameter 'extents' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:499:62: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:502:47: style: Parameter 'extents' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:502:61: style: Parameter 'offsets' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/hdf5_util/mh5_capi.c:545:46: style: Parameter 'dims' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:100:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/zip.c:189:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/zip.c:264:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/zip.c:329:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/zip.c:573:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT [valueFlowBailoutIncompleteVar] OpenMolcas-v26.02/src/io_util/zip.c:155:15: portability: Casting between signed short * and double * which have an incompatible binary data representation. [invalidPointerCast] OpenMolcas-v26.02/src/io_util/zip.c:238:19: portability: Casting between signed short * and double * which have an incompatible binary data representation. [invalidPointerCast] OpenMolcas-v26.02/src/io_util/zip.c:78:16: style: Parameter 'p_N' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:78:29: style: Parameter 'p_Thrs' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:78:59: style: Parameter 'p_X' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:172:18: style: Parameter 'p_N' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:172:31: style: Parameter 'p_Thrs' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:250:19: style: Parameter 'p_N' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:250:32: style: Parameter 'p_Thrs' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:250:48: style: Parameter 'p_X' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:299:16: style: Parameter 'OpCode' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:299:29: style: Parameter 'nData' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:299:54: style: Parameter 'InBuf' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:302:9: style: Variable 'p_byte_1' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:20: style: Variable 'p_byte_2' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:31: style: Variable 'p_byte_3' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:42: style: Variable 'p_byte_4' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:53: style: Variable 'p_byte_5' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:64: style: Variable 'p_byte_6' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:75: style: Variable 'p_byte_7' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:86: style: Variable 'p_byte_8' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:97: style: Variable 'p_byte_9' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:302:108: style: Variable 'p_byte_10' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:310:8: style: Variable 'MAGIC' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:530:18: style: Parameter 'OpCode' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:530:31: style: Parameter 'nData' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:540:9: style: Variable 'p_unzip' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:543:8: style: Variable 'MAGIC' can be declared as pointer to const [constVariablePointer] OpenMolcas-v26.02/src/io_util/zip.c:755:19: style: Parameter 'OpCode' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:755:32: style: Parameter 'nData' can be declared as pointer to const [constParameterPointer] OpenMolcas-v26.02/src/io_util/zip.c:755:44: style: Parameter 'InBuf' can be declared as pointer to const [constParameterPointer] diff: 2.21.0 OpenMolcas-v26.02/src/io_util/zip.c:611:18: style: Condition 'stop_bit!=0' is always false [knownConditionTrueFalse] OpenMolcas-v26.02/src/io_util/zip.c:596:18: note: Assuming that condition 'stop_bit!=0' is not redundant OpenMolcas-v26.02/src/io_util/zip.c:611:18: note: Condition 'stop_bit!=0' is always false 2.21.0 OpenMolcas-v26.02/src/io_util/zip.c:622:29: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] 2.21.0 OpenMolcas-v26.02/src/io_util/zip.c:626:18: style: Condition 'stop_bit!=0' is always false [knownConditionTrueFalse] OpenMolcas-v26.02/src/io_util/zip.c:596:18: note: Assuming that condition 'stop_bit!=0' is not redundant OpenMolcas-v26.02/src/io_util/zip.c:626:18: note: Condition 'stop_bit!=0' is always false head OpenMolcas-v26.02/src/parnell/parnell_reduce.c:53:24: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] OpenMolcas-v26.02/src/parnell/parnell_reduce.c:35:26: note: Assuming allocation function fails OpenMolcas-v26.02/src/parnell/parnell_reduce.c:35:12: note: Assignment 'buffer=(void*)malloc(4096)', assigned value is 0 OpenMolcas-v26.02/src/parnell/parnell_reduce.c:53:24: note: Null pointer dereference 2.21.0 OpenMolcas-v26.02/src/parnell/parnell_scatter.c:65:54: warning: Either the condition '(src_file=fopen(src_name,"r"))==NULL' is redundant or there is possible null pointer dereference: src_file. [nullPointerRedundantCheck] OpenMolcas-v26.02/src/parnell/parnell_scatter.c:48:45: note: Assuming that condition '(src_file=fopen(src_name,"r"))==NULL' is not redundant OpenMolcas-v26.02/src/parnell/parnell_scatter.c:65:54: note: Null pointer dereference DONE