2025-07-11 09:17 ftp://ftp.de.debian.org/debian/pool/main/r/rmlint/rmlint_2.10.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 148 158 elapsed-time: 1.5 1.5 head-timing-info: old-timing-info: head results: rmlint-2.10.2/lib/checksum.c:210:0: error: #error "Probably not a good idea to compile rmlint on 16bit." [preprocessorErrorDirective] rmlint-2.10.2/lib/checksum.c:210:2: error: #error "Probably not a good idea to compile rmlint on 16bit." [preprocessorErrorDirective] rmlint-2.10.2/lib/utilities.h:121:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/cfg.c:46:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/cfg.c:129:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/checksums/blake2/blake2bp-ref.c:135:52: style:inconclusive: Function 'blake2bp_update' argument 2 names different: declaration 'in' definition 'pin'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/blake2/blake2.h:153:52: note: Function 'blake2bp_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/checksums/blake2/blake2bp-ref.c:135:52: note: Function 'blake2bp_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/checksums/murmur3.c:550:58: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/checksums/murmur3.c:551:58: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/checksums/blake2/blake2sp-ref.c:132:52: style:inconclusive: Function 'blake2sp_update' argument 2 names different: declaration 'in' definition 'pin'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/blake2/blake2.h:148:52: note: Function 'blake2sp_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/checksums/blake2/blake2sp-ref.c:132:52: note: Function 'blake2sp_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/checksums/metrohash128.c:415:14: style: Variable 'end' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/checksums/metrohash128.c:475:14: style: Variable 'end' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/checksums/metrohash.h:91:5: style: int result is returned as long value. If the return value is long to avoid loss of information, then you have loss of information. [truncLongCastReturn] rmlint-2.10.2/lib/file.c:109:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/cmdline.c:1844:65: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/formats.c:79:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_unref [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats.c:153:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_QUEUE_INIT [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats.c:285:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats.c:377:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/file.c:35:62: style:inconclusive: Function 'rm_file_new' argument 6 names different: declaration 'pnum' definition 'path_index'. [funcArgNamesDifferent] rmlint-2.10.2/lib/file.h:308:62: note: Function 'rm_file_new' argument 6 names different: declaration 'pnum' definition 'path_index'. rmlint-2.10.2/lib/file.c:35:62: note: Function 'rm_file_new' argument 6 names different: declaration 'pnum' definition 'path_index'. rmlint-2.10.2/lib/file.c:102:43: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/formats/_equal.c:93:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:299:42: style:inconclusive: Function 'XXH32' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:83:46: note: Function 'XXH32' argument 2 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:299:42: note: Function 'XXH32' argument 2 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:430:52: style:inconclusive: Function 'XXH64' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:84:52: note: Function 'XXH64' argument 2 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:430:52: note: Function 'XXH64' argument 2 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:509:42: style:inconclusive: Function 'XXH32_reset' argument 1 names different: declaration 'statePtr' definition 'state_in'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:128:42: note: Function 'XXH32_reset' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:509:42: note: Function 'XXH32_reset' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:521:42: style:inconclusive: Function 'XXH64_reset' argument 1 names different: declaration 'statePtr' definition 'state_in'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:132:42: note: Function 'XXH64_reset' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:521:42: note: Function 'XXH64_reset' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:619:43: style:inconclusive: Function 'XXH32_update' argument 1 names different: declaration 'statePtr' definition 'state_in'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:129:43: note: Function 'XXH32_update' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:619:43: note: Function 'XXH32_update' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:619:79: style:inconclusive: Function 'XXH32_update' argument 3 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:129:79: note: Function 'XXH32_update' argument 3 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:619:79: note: Function 'XXH32_update' argument 3 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:665:39: style:inconclusive: Function 'XXH32_digest' argument 1 names different: declaration 'statePtr' definition 'state_in'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:130:48: note: Function 'XXH32_digest' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:665:39: note: Function 'XXH32_digest' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:760:43: style:inconclusive: Function 'XXH64_update' argument 1 names different: declaration 'statePtr' definition 'state_in'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:133:43: note: Function 'XXH64_update' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:760:43: note: Function 'XXH64_update' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:760:79: style:inconclusive: Function 'XXH64_update' argument 3 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:133:79: note: Function 'XXH64_update' argument 3 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:760:79: note: Function 'XXH64_update' argument 3 names different: declaration 'length' definition 'len'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:845:54: style:inconclusive: Function 'XXH64_digest' argument 1 names different: declaration 'statePtr' definition 'state_in'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/xxhash/xxhash.h:134:54: note: Function 'XXH64_digest' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:845:54: note: Function 'XXH64_digest' argument 1 names different: declaration 'statePtr' definition 'state_in'. rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:573:16: style: Variable 'p32' is assigned a value that is never used. [unreadVariable] rmlint-2.10.2/lib/checksums/xxhash/xxhash.c:714:16: style: Variable 'p64' is assigned a value that is never used. [unreadVariable] rmlint-2.10.2/lib/formats/csv.c:92:9: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/formats.c:138:19: style: Variable 'handler' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/formats.c:223:11: style: Variable 'extension' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/formats.c:354:13: style: Variable 'fa' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/formats.c:355:13: style: Variable 'fb' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/formats.c:420:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/formats.c:546:43: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/formats.c:546:63: style: Parameter 'handler' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/formats/json.c:85:30: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/formats/fdupes.c:55:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats/fdupes.c:43:44: style: Parameter 'session' can be declared as pointer to const. However it seems that 'rm_fmt_elem' is a callback function, if 'session' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rmlint-2.10.2/lib/formats/fdupes.c:104:21: note: You might need to cast the function pointer here rmlint-2.10.2/lib/formats/fdupes.c:43:44: note: Parameter 'session' can be declared as pointer to const rmlint-2.10.2/lib/formats/progressbar.c:74:49: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/formats/pretty.c:148:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats/summary.c:82:52: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/formats/timestamp.c:53:26: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/checksums/blake2/blake2s-ref.c:129:33: style: Condition 'blake2s_init_param(S,P)<0' is always false [knownConditionTrueFalse] rmlint-2.10.2/lib/checksums/blake2/blake2s-ref.c:129:26: note: Calling function 'blake2s_init_param' returns 0 rmlint-2.10.2/lib/checksums/blake2/blake2s-ref.c:129:33: note: Condition 'blake2s_init_param(S,P)<0' is always false rmlint-2.10.2/lib/formats/pretty.c:56:69: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/formats/pretty.c:156:27: style: Variable 'self' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/formats/stats.c:61:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/checksums/blake2/blake2s-ref.c:207:50: style:inconclusive: Function 'blake2s_update' argument 2 names different: declaration 'in' definition 'pin'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/blake2/blake2.h:137:50: note: Function 'blake2s_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/checksums/blake2/blake2s-ref.c:207:50: note: Function 'blake2s_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/hash-utility.c:55:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RM_ERROR_QUARK [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/hash-utility.c:120:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RM_DEFAULT_DIGEST [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats/uniques.c:60:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/formats/uniques.c:44:44: style: Parameter 'session' can be declared as pointer to const. However it seems that 'rm_fmt_elem' is a callback function, if 'session' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rmlint-2.10.2/lib/formats/uniques.c:75:17: note: You might need to cast the function pointer here rmlint-2.10.2/lib/formats/uniques.c:44:44: note: Parameter 'session' can be declared as pointer to const rmlint-2.10.2/lib/formats/uniques.c:46:26: style: Variable 'self' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/hash-utility.c:61:53: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/fts/fts.c:121:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:284:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:357:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:530:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:544:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:653:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:925:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/fts/fts.c:1177:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/md-scheduler.c:248:50: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/hasher.c:176:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/hasher.c:246:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/pathtricia.c:235:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] rmlint-2.10.2/lib/pathtricia.c:105:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/pathtricia.c:196:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/pathtricia.c:235:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/pathtricia.c:131:11: style: Variable 'path_elem' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/pathtricia.c:228:29: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/replay.c:952:48: style: Parameter 'cage' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/replay.c:962:49: style: Parameter 'cage' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/replay.c:965:49: style: Parameter 'cage' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/checksums/blake2/blake2b-ref.c:129:33: style: Condition 'blake2b_init_param(S,P)<0' is always false [knownConditionTrueFalse] rmlint-2.10.2/lib/checksums/blake2/blake2b-ref.c:129:26: note: Calling function 'blake2b_init_param' returns 0 rmlint-2.10.2/lib/checksums/blake2/blake2b-ref.c:129:33: note: Condition 'blake2b_init_param(S,P)<0' is always false rmlint-2.10.2/lib/checksums/blake2/blake2b-ref.c:209:50: style:inconclusive: Function 'blake2b_update' argument 2 names different: declaration 'in' definition 'pin'. [funcArgNamesDifferent] rmlint-2.10.2/lib/checksums/blake2/blake2.h:143:50: note: Function 'blake2b_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/checksums/blake2/blake2b-ref.c:209:50: note: Function 'blake2b_update' argument 2 names different: declaration 'in' definition 'pin'. rmlint-2.10.2/lib/session.c:353:78: error: syntax error [syntaxError] rmlint-2.10.2/lib/preprocess.c:152:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/preprocess.c:247:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RM_ERROR_QUARK [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/preprocess.c:323:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RM_ERROR_QUARK [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/preprocess.c:445:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/preprocess.c:595:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/shredder.c:616:49: error: There is an unknown macro here somewhere. Configuration is required. If LLI is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/hasher.c:144:64: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/hasher.c:91:14: style: struct member '_RmHasherTask::finalise' is never used. [unusedStructMember] rmlint-2.10.2/lib/hasher.c:241:23: style: Variable 'bytes_read' is assigned a value that is never used. [unreadVariable] rmlint-2.10.2/lib/traverse.c:124:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/traverse.c:179:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/traverse.c:316:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/preprocess.c:262:12: style: Condition 'iter' is always true [knownConditionTrueFalse] rmlint-2.10.2/lib/preprocess.c:264:19: style: Condition 'iter' is always true [knownConditionTrueFalse] rmlint-2.10.2/lib/treemerge.c:148:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/treemerge.c:315:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/treemerge.c:580:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/treemerge.c:758:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/treemerge.c:870:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_QUEUE_INIT [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/preprocess.c:227:43: style:inconclusive: Function 'rm_file_tables_destroy' argument 1 names different: declaration 'list' definition 'tables'. [funcArgNamesDifferent] rmlint-2.10.2/lib/preprocess.h:49:43: note: Function 'rm_file_tables_destroy' argument 1 names different: declaration 'list' definition 'tables'. rmlint-2.10.2/lib/preprocess.c:227:43: note: Function 'rm_file_tables_destroy' argument 1 names different: declaration 'list' definition 'tables'. rmlint-2.10.2/lib/preprocess.c:38:11: style: Variable 'ext_a' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:39:11: style: Variable 'ext_b' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:53:11: style: Variable 'ext_a' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:54:11: style: Variable 'ext_b' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:73:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:190:13: style: Variable 'file_a' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:191:13: style: Variable 'file_b' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:448:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:500:22: style: Variable 'match_double_key' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:538:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/preprocess.c:450:68: warning: Uninitialized variable: a_path [uninitvar] rmlint-2.10.2/lib/preprocess.c:445:5: note: Assuming condition is false rmlint-2.10.2/lib/preprocess.c:450:68: note: Uninitialized variable: a_path rmlint-2.10.2/lib/preprocess.c:450:76: warning: Uninitialized variable: b_path [uninitvar] rmlint-2.10.2/lib/preprocess.c:446:5: note: Assuming condition is false rmlint-2.10.2/lib/preprocess.c:450:76: note: Uninitialized variable: b_path rmlint-2.10.2/lib/utilities.c:377:31: error: There is an unknown macro here somewhere. Configuration is required. If LLU is a macro then please configure it. [unknownMacro] rmlint-2.10.2/lib/treemerge.c:546:9: error: Memory leak: self [memleak] rmlint-2.10.2/lib/treemerge.c:218:65: error: Null pointer dereference [nullPointer] rmlint-2.10.2/lib/treemerge.c:552:86: style:inconclusive: Function 'rm_tm_set_callback' argument 3 names different: declaration 'callback_data' definition 'data'. [funcArgNamesDifferent] rmlint-2.10.2/lib/treemerge.h:62:86: note: Function 'rm_tm_set_callback' argument 3 names different: declaration 'callback_data' definition 'data'. rmlint-2.10.2/lib/treemerge.c:552:86: note: Function 'rm_tm_set_callback' argument 3 names different: declaration 'callback_data' definition 'data'. rmlint-2.10.2/lib/treemerge.c:884:20: style: Local variable 'iter' shadows outer variable [shadowVariable] rmlint-2.10.2/lib/treemerge.c:847:16: note: Shadowed declaration rmlint-2.10.2/lib/treemerge.c:884:20: note: Shadow variable rmlint-2.10.2/lib/treemerge.c:900:20: style: Local variable 'iter' shadows outer variable [shadowVariable] rmlint-2.10.2/lib/treemerge.c:847:16: note: Shadowed declaration rmlint-2.10.2/lib/treemerge.c:900:20: note: Shadow variable rmlint-2.10.2/lib/treemerge.c:114:51: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/treemerge.c:355:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/treemerge.c:367:48: style: Parameter 'merger' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/treemerge.c:435:44: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/treemerge.c:475:51: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/treemerge.c:644:75: style: Parameter 'directory' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/treemerge.c:648:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/treemerge.c:673:80: style: Parameter 'directory' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/treemerge.c:687:51: style: Parameter 'self' can be declared as pointer to const. However it seems that 'rm_tm_sort_paths' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rmlint-2.10.2/lib/treemerge.c:873:50: note: You might need to cast the function pointer here rmlint-2.10.2/lib/treemerge.c:687:51: note: Parameter 'self' can be declared as pointer to const rmlint-2.10.2/lib/treemerge.c:698:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/treemerge.c:752:18: style: Variable 'first_a' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/treemerge.c:753:18: style: Variable 'first_b' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/treemerge.c:823:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/treemerge.c:842:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/src/rmlint.c:64:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rmlint-2.10.2/src/rmlint.c:109:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RM_LOG_INIT [valueFlowBailoutIncompleteVar] rmlint-2.10.2/lib/treemerge.c:124:17: style: struct member 'RmTreeMerger::file_checks' is never used. [unusedStructMember] rmlint-2.10.2/src/rmlint.c:57:16: style: Variable 'session' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/traverse.c:301:81: error: Null pointer dereference [nullPointer] rmlint-2.10.2/lib/traverse.c:81:52: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/traverse.c:113:45: style: Parameter 'link_path' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/traverse.c:137:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/traverse.c:223:42: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/traverse.c:308:17: style: Variable 'chp' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/fts/fts.c:619:20: style: Variable 'dp' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/fts/fts.c:624:11: style: Variable 'oldaddr' can be declared as pointer to const [constVariablePointer] rmlint-2.10.2/lib/fts/fts.c:1007:31: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] rmlint-2.10.2/lib/fts/fts.c:1128:30: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] diff: head rmlint-2.10.2/lib/checksum.c:210:2: error: #error "Probably not a good idea to compile rmlint on 16bit." [preprocessorErrorDirective] 2.17.0 rmlint-2.10.2/lib/formats.c:226:48: warning: If memory allocation fails, then there is a possible null pointer dereference: old_path_prefix [nullPointerOutOfMemory] rmlint-2.10.2/lib/formats.c:225:42: note: Assuming allocation function fails rmlint-2.10.2/lib/formats.c:225:42: note: Assignment 'old_path_prefix=g_strndup(old_path,extension-old_path)', assigned value is 0 rmlint-2.10.2/lib/formats.c:226:48: note: Null pointer dereference 2.17.0 rmlint-2.10.2/lib/formats.c:236:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: new_path [nullPointerOutOfMemory] rmlint-2.10.2/lib/formats.c:226:35: note: Assuming allocation function fails rmlint-2.10.2/lib/formats.c:226:35: note: Assignment 'new_path=g_strdup_printf("%s.%s.%s",old_path_prefix,timestamp,extension+1)', assigned value is 0 rmlint-2.10.2/lib/formats.c:236:25: note: Null pointer dereference head rmlint-2.10.2/lib/fts/fts.c:1007:31: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] head rmlint-2.10.2/lib/fts/fts.c:1128:30: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] 2.17.0 rmlint-2.10.2/lib/fts/fts.c:739:47: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 rmlint-2.10.2/lib/preprocess.c:216:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_queue_free [valueFlowBailoutIncompleteVar] 2.17.0 rmlint-2.10.2/lib/preprocess.c:288:49: warning: If memory allocation fails, then there is a possible null pointer dereference: part [nullPointerOutOfMemory] rmlint-2.10.2/lib/preprocess.c:286:37: note: Assuming allocation function fails rmlint-2.10.2/lib/preprocess.c:286:37: note: Assignment 'part=g_string_new_len(&pattern[1],src_len)', assigned value is 0 rmlint-2.10.2/lib/preprocess.c:288:49: note: Null pointer dereference 2.17.0 rmlint-2.10.2/lib/preprocess.c:291:26: warning: If memory allocation fails, then there is a possible null pointer dereference: part [nullPointerOutOfMemory] rmlint-2.10.2/lib/preprocess.c:286:37: note: Assuming allocation function fails rmlint-2.10.2/lib/preprocess.c:286:37: note: Assignment 'part=g_string_new_len(&pattern[1],src_len)', assigned value is 0 rmlint-2.10.2/lib/preprocess.c:291:26: note: Null pointer dereference 2.17.0 rmlint-2.10.2/lib/preprocess.c:314:9: warning: If memory allocation fails, then there is a possible null pointer dereference: minified_sortcrit [nullPointerOutOfMemory] rmlint-2.10.2/lib/preprocess.c:310:39: note: Assuming allocation function fails rmlint-2.10.2/lib/preprocess.c:310:39: note: Assignment 'minified_sortcrit=g_strdup(sortcrit)', assigned value is 0 rmlint-2.10.2/lib/preprocess.c:314:9: note: Null pointer dereference 2.17.0 rmlint-2.10.2/lib/preprocess.c:665:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_queue_new [valueFlowBailoutIncompleteVar] 2.17.0 rmlint-2.10.2/lib/treemerge.c:508:24: warning: If memory allocation fails, then there is a possible null pointer dereference: basename [nullPointerOutOfMemory] rmlint-2.10.2/lib/treemerge.c:503:45: note: Assuming allocation function fails rmlint-2.10.2/lib/treemerge.c:503:45: note: Assignment 'basename=g_path_get_basename(subdir->dirname)', assigned value is 0 rmlint-2.10.2/lib/treemerge.c:508:24: note: Null pointer dereference 2.17.0 rmlint-2.10.2/lib/treemerge.c:534:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_queue_free [valueFlowBailoutIncompleteVar] 2.17.0 rmlint-2.10.2/lib/treemerge.c:571:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_queue_new [valueFlowBailoutIncompleteVar] 2.17.0 rmlint-2.10.2/lib/treemerge.c:728:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_queue_new [valueFlowBailoutIncompleteVar] 2.17.0 rmlint-2.10.2/lib/treemerge.c:989:27: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_dir [nullPointerOutOfMemory] rmlint-2.10.2/lib/treemerge.c:988:42: note: Assuming allocation function fails rmlint-2.10.2/lib/treemerge.c:988:42: note: Assignment 'parent_dir=g_path_get_dirname(directory->dirname)', assigned value is 0 rmlint-2.10.2/lib/treemerge.c:989:27: note: Null pointer dereference DONE