2026-05-16 17:15 ftp://ftp.de.debian.org/debian/pool/main/s/seadrive-fuse/seadrive-fuse_3.0.21.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sqlite3 --library=openssl --library=libcurl --library=zlib --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 -j96 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: d901661 (2026-05-16 19:12:58 +0200) count: 502 203 elapsed-time: 1.0 0.4 head-timing-info: old-timing-info: head results: haiwen-seadrive-fuse-91b536f/src/curl-init.c:17:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CRYPTO_LOCK [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/curl-init.c:26:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_ALL [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-backend.c:27:9: error: Memory leak: block_dir [memleak] haiwen-seadrive-fuse-91b536f/src/block-backend.c:55:5: error: Memory leak: backend [memleak] haiwen-seadrive-fuse-91b536f/src/db.c:120:60: style:inconclusive: Function 'sqlite_foreach_selected_row' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/db.c:74:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/db.c:81:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/db.c:88:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/mq-mgr.c:18:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_async_queue_unref [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/mq-mgr.c:27:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_decref [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/cdc.c:47:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/cdc.c:120:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/cdc.c:236:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/log.c:47:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_FLAG_FATAL [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/log.c:80:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/log.c:170:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/log.c:181:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:62:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:137:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:168:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:194:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:222:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:105:30: style: Argument 'poly' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:7:18: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:105:30: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:135:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/set-perm.c:20:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:69:28: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:83:28: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:82:19: note: Assuming that condition 'i<64' is not redundant haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:83:28: note: Shift haiwen-seadrive-fuse-91b536f/src/log.c:32:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] haiwen-seadrive-fuse-91b536f/src/log.c:45:31: style:inconclusive: Function 'seafile_log_init' argument 1 names different: declaration 'logfile' definition '_logfile'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/log.h:16:35: note: Function 'seafile_log_init' argument 1 names different: declaration 'logfile' definition '_logfile'. haiwen-seadrive-fuse-91b536f/src/log.c:45:31: note: Function 'seafile_log_init' argument 1 names different: declaration 'logfile' definition '_logfile'. haiwen-seadrive-fuse-91b536f/src/log.c:24:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:183:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:232:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/password-hash.c:164:34: style:inconclusive: Function 'pwd_hash_derive_key' argument 3 names different: declaration 'repo_salt' definition 'salt'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/password-hash.h:19:34: note: Function 'pwd_hash_derive_key' argument 3 names different: declaration 'repo_salt' definition 'salt'. haiwen-seadrive-fuse-91b536f/src/password-hash.c:164:34: note: Function 'pwd_hash_derive_key' argument 3 names different: declaration 'repo_salt' definition 'salt'. haiwen-seadrive-fuse-91b536f/src/password-hash.c:51:41: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/password-hash.c:99:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/seadrive.c:38:33: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] haiwen-seadrive-fuse-91b536f/src/notif-mgr.c:365:30: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:92:39: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'block_backend_fs_read_block' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:449:24: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:92:39: note: Parameter 'handle' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:99:45: style: Parameter 'bend' can be declared as pointer to const. However it seems that 'block_backend_fs_write_block' is a callback function, if 'bend' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:450:25: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:99:45: note: Parameter 'bend' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:100:42: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'block_backend_fs_write_block' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:450:25: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:100:42: note: Parameter 'handle' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:107:45: style: Parameter 'bend' can be declared as pointer to const. However it seems that 'block_backend_fs_close_block' is a callback function, if 'bend' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:452:25: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:107:45: note: Parameter 'bend' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:108:42: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'block_backend_fs_close_block' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:452:25: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:108:42: note: Parameter 'handle' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:235:49: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'block_backend_fs_stat_block_by_handle' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:456:34: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:235:49: note: Parameter 'handle' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:259:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:316:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:361:46: style: Parameter 'bend' can be declared as pointer to const. However it seems that 'block_backend_fs_rewind_block' is a callback function, if 'bend' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:460:26: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:361:46: note: Parameter 'bend' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:362:40: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'block_backend_fs_rewind_block' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:460:26: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:362:40: note: Parameter 'handle' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:374:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/block-backend-fs.c:406:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:553:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/cdc.c:65:34: style: Checking if unsigned expression 'file_descr->block_min_sz' is less than zero. [unsignedLessThanZero] haiwen-seadrive-fuse-91b536f/src/cdc.c:67:34: style: Checking if unsigned expression 'file_descr->block_max_sz' is less than zero. [unsignedLessThanZero] haiwen-seadrive-fuse-91b536f/src/cdc.c:69:30: style: Checking if unsigned expression 'file_descr->block_sz' is less than zero. [unsignedLessThanZero] haiwen-seadrive-fuse-91b536f/src/utils.c:106:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/utils.c:205:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/utils.c:250:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/utils.c:274:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/utils.c:299:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/utils.c:326:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/utils.c:476:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:235:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:236:23: debug: Scope::checkVariable found variable 'new_val' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/cdc.c:38:48: style: Parameter 'chunk_descr' can be declared as pointer to const. However it seems that 'default_write_chunk' is a callback function, if 'chunk_descr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/cdc.c:73:51: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/cdc.c:38:48: note: Parameter 'chunk_descr' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/cdc.c:119:18: style: Unused variable: len [unusedVariable] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:58:5: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:114:1: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:172:1: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:20:21: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:253:29: style: Parameter 'data' can be declared as pointer to const. However it seems that 'obj_backend_fs_write' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:447:19: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:253:29: note: Parameter 'data' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/obj-backend-fs.c:374:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:307:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:669:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:880:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:969:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/seafile-crypt.c:235:9: error: Memory leak: buf [memleak] haiwen-seadrive-fuse-91b536f/src/seafile-crypt.c:340:32: style:inconclusive: Function 'seafile_update_random_key' argument 5 names different: declaration 'version' definition 'enc_version'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/seafile-crypt.h:109:32: note: Function 'seafile_update_random_key' argument 5 names different: declaration 'version' definition 'enc_version'. haiwen-seadrive-fuse-91b536f/src/seafile-crypt.c:340:32: note: Function 'seafile_update_random_key' argument 5 names different: declaration 'version' definition 'enc_version'. haiwen-seadrive-fuse-91b536f/src/seafile-crypt.c:39:48: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/seafile-crypt.c:39:68: style: Parameter 'iv' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/seafile-crypt.c:515:32: style: Parameter 'crypt' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/block-mgr.c:216:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/job-mgr.c:68:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/job-mgr.c:79:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/job-mgr.c:96:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2885:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/job-mgr.c:133:48: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 3 names different: declaration '' definition 'done_func'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/job-mgr.c:134:38: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/timer.c:43:30: style:inconclusive: Function 'seaf_timer_free' argument 1 names different: declaration 'timer' definition 'ptimer'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/timer.h:25:35: note: Function 'seaf_timer_free' argument 1 names different: declaration 'timer' definition 'ptimer'. haiwen-seadrive-fuse-91b536f/src/timer.c:43:30: note: Function 'seaf_timer_free' argument 1 names different: declaration 'timer' definition 'ptimer'. haiwen-seadrive-fuse-91b536f/src/obj-store.c:114:35: style:inconclusive: Function 'seaf_obj_store_foreach_obj' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/timer.c:74:33: style:inconclusive: Function 'seaf_timer_new' argument 2 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/timer.c:75:33: style:inconclusive: Function 'seaf_timer_new' argument 3 names different: declaration '' definition 'interval_milliseconds'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/obj-store.c:21:37: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/obj-store.c:21:37: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/obj-store.c:21:37: style: Parameter 'seaf' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/obj-store.c:39:36: style: Parameter 'obj_store' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:195:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_COMPACT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:240:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:295:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:313:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:349:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:442:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:532:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT64 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/seafile-session.c:54:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/seafile-session.c:244:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-mgr.c:159:41: style:inconclusive: Function 'seaf_block_manager_foreach_block' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/block-mgr.c:27:49: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/block-mgr.c:27:49: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:41:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_destroy [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:235:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:306:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:429:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:473:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:534:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/block-mgr.c:50:44: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:553:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:324:5: error: Returning/dereferencing 'ret' after it is deallocated / released [deallocret] haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:317:9: note: Returning/dereferencing 'ret' after it is deallocated / released haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:324:5: note: Returning/dereferencing 'ret' after it is deallocated / released haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:40:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:200:79: style:inconclusive: Function 'seaf_branch_manager_update_repo_branches' argument 2 names different: declaration 'new_branch_info' definition 'branch_info'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/branch-mgr.h:59:55: note: Function 'seaf_branch_manager_update_repo_branches' argument 2 names different: declaration 'new_branch_info' definition 'branch_info'. haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:200:79: note: Function 'seaf_branch_manager_update_repo_branches' argument 2 names different: declaration 'new_branch_info' definition 'branch_info'. haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:86:50: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:86:50: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:132:69: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:180:72: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:200:79: style: Parameter 'branch_info' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/seafile-config.c:242:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/utils.c:113:12: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] haiwen-seadrive-fuse-91b536f/src/utils.c:405:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] haiwen-seadrive-fuse-91b536f/src/utils.c:410:18: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] haiwen-seadrive-fuse-91b536f/src/utils.c:216:13: error: Memory leak: dir [memleak] haiwen-seadrive-fuse-91b536f/src/utils.c:82:34: style:inconclusive: Function 'checkdir_with_mkdir' argument 1 names different: declaration 'path' definition 'pathname'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/utils.h:135:38: note: Function 'checkdir_with_mkdir' argument 1 names different: declaration 'path' definition 'pathname'. haiwen-seadrive-fuse-91b536f/src/utils.c:82:34: note: Function 'checkdir_with_mkdir' argument 1 names different: declaration 'path' definition 'pathname'. haiwen-seadrive-fuse-91b536f/src/utils.c:399:24: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/utils.c:770:11: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/http-tx-mgr.c:594:66: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:276:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:307:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:368:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:438:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:514:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:620:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:669:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:710:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:880:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:924:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:969:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/seafile-session.c:235:39: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/seafile-session.c:507:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/seafile-session.c:508:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1834:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2647:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2674:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3091:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3119:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3283:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3474:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3519:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3557:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3814:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4299:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:180:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:85:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:126:51: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:146:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:172:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:198:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:295:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:300:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:422:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:466:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:527:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4243:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4705:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:71:40: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:101:29: style: Parameter 'op1' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:101:45: style: Parameter 'op2' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:177:32: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:224:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:278:49: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:302:25: style: Parameter 'journal' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:377:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/journal-mgr.c:589:28: style: Parameter 'journal' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:126:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:164:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:292:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:352:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:637:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:708:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1104:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:2069:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:2200:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:246:24: warning: Either the condition '!comps' is redundant or there is possible null pointer dereference: comps. [nullPointerRedundantCheck] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:247:9: note: Assuming that condition '!comps' is not redundant haiwen-seadrive-fuse-91b536f/src/repo-tree.c:246:24: note: Null pointer dereference haiwen-seadrive-fuse-91b536f/src/change-set.c:54:46: style: Parameter 'seaf_dent' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:61:64: style: Parameter 'dent' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:240:29: style: Parameter 'sha1' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:241:24: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:265:33: style: Parameter 'sha1' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:266:28: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:309:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:383:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:195:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:260:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:337:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:414:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:469:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:756:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:852:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:901:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1054:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1183:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1323:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1484:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1544:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1609:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1644:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1685:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1721:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1735:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2137:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2218:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2261:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2407:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2561:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2601:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2637:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2885:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2935:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:167:17: style: Variable 'seafdirent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-tree.c:285:21: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/change-set.c:555:12: style: Unused variable: subdir_new_mtime [unusedVariable] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:334:9: error: Memory leak: commit_hash [memleak] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:65:30: style:inconclusive: Function 'seaf_commit_new' argument 4 names different: declaration 'author_name' definition 'creator_name'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/commit-mgr.h:60:30: note: Function 'seaf_commit_new' argument 4 names different: declaration 'author_name' definition 'creator_name'. haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:65:30: note: Function 'seaf_commit_new' argument 4 names different: declaration 'author_name' definition 'creator_name'. haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:319:58: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 6 names different: declaration '' definition 'limit'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:320:60: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 7 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:321:63: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 8 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:505:49: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:506:52: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:518:59: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:519:62: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:620:38: style:inconclusive: Function 'commit_from_json_object' argument 1 names different: declaration 'id' definition 'commit_id'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:36:38: note: Function 'commit_from_json_object' argument 1 names different: declaration 'id' definition 'commit_id'. haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:620:38: note: Function 'commit_from_json_object' argument 1 names different: declaration 'id' definition 'commit_id'. haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:191:42: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:191:42: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:273:68: style: Parameter 'unused' can be declared as pointer to const. However it seems that 'compare_commit_by_time' is a callback function, if 'unused' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:432:44: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:273:68: note: Parameter 'unused' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:558:36: style: Parameter 'commit' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:220:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:151:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:225:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:377:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:424:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:535:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1216:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT64 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1686:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_destroy [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1742:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1794:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1834:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1874:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1958:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2647:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2674:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3091:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3119:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3283:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3474:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3519:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3557:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3814:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4226:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EACCES [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4299:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1144:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3962:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT64 [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4243:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4705:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1955:9: style: Condition 'file_id' is always true [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1980:9: style: Condition 'dir_id' is always true [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1812:9: error: Memory leak: tmp_path [memleak] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:2299:13: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:2285:18: note: ret is initialized haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:2299:13: note: ret is overwritten haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:179:30: style:inconclusive: Function 'write_seafile' argument 5 names different: declaration 'obj_sha1' definition 'sha1'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:50:31: note: Function 'write_seafile' argument 5 names different: declaration 'obj_sha1' definition 'sha1'. haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:179:30: note: Function 'write_seafile' argument 5 names different: declaration 'obj_sha1' definition 'sha1'. haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1528:38: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 6 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1529:41: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1597:38: style:inconclusive: Function 'seaf_fs_manager_traverse_path' argument 7 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:53:38: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:53:38: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/diff-simple.c:7:56: style: Parameter 'sha1' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:62:26: style: Parameter 'denta' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:62:45: style: Parameter 'dentb' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:98:11: style: Variable 'dirname' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:160:11: style: Variable 'first_name' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:334:27: style: Parameter 'commit1' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:334:48: style: Parameter 'commit2' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:455:25: style: Parameter 'merge' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:631:36: style: Parameter 'de_dir' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:631:55: style: Parameter 'de_file' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:667:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:703:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:705:11: style: Variable 'added_file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:705:31: style: Variable 'mod_file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:705:49: style: Variable 'removed_file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:706:11: style: Variable 'renamed_file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:706:33: style: Variable 'renamed_dir' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:707:11: style: Variable 'new_dir' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/diff-simple.c:707:28: style: Variable 'removed_dir' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:83:39: style: Parameter 'cdc' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:236:26: style: Parameter 'checksum' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:598:30: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1026:33: style: Parameter 'dirent' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1068:49: style: Parameter 'dirent' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1202:17: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1202:24: style: Variable 'dent_n' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1478:17: style: Variable 'seaf_dent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1701:17: style: Variable 'seaf_dent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1756:17: style: Variable 'seaf_dent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1804:17: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1806:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1817:16: style: Variable 'l' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1863:19: style: Variable 'name' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2635:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:584:21: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2362:9: error: Memory leak: dir [memleak] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2521:9: error: Memory leak: dir [memleak] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2947:13: error: Memory leak: dir [memleak] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1567:38: style:inconclusive: Function 'file_cache_mgr_truncate' argument 3 names different: declaration 'path' definition 'file_path'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.h:75:38: note: Function 'file_cache_mgr_truncate' argument 3 names different: declaration 'path' definition 'file_path'. haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1567:38: note: Function 'file_cache_mgr_truncate' argument 3 names different: declaration 'path' definition 'file_path'. haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2247:51: style:inconclusive: Function 'file_cache_mgr_traverse_path' argument 5 names different: declaration '' definition 'dir_cb'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2248:37: style:inconclusive: Function 'file_cache_mgr_traverse_path' argument 6 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:94:38: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:96:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:98:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:99:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:119:30: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:160:51: style: Parameter 'file_handle' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:318:11: style: Variable 'buffer' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:351:31: style: Parameter 'contents' can be declared as pointer to const. However it seems that 'get_encrypted_block_cb' is a callback function, if 'contents' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:629:48: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:351:31: note: Parameter 'contents' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:403:58: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:437:39: style: Parameter 'server_info' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:437:62: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:460:34: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:460:48: style: Parameter 'block_map' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:460:77: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:502:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:503:11: style: Variable 'file_path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:738:41: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1177:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1571:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1664:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1717:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1731:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1744:47: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1762:36: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1787:41: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1872:41: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1893:46: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1907:48: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1950:49: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1977:48: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2046:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2110:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2118:42: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2195:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2337:37: style: Parameter 'st' can be declared as pointer to const. However it seems that 'load_cached_file_info_cb' is a callback function, if 'st' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2369:39: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2337:37: note: Parameter 'st' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2578:49: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2626:38: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2649:23: style: Variable 'handle' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2652:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2656:17: style: Variable 'cached_file' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2680:25: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2823:48: style: Variable 'file_path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2889:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2889:21: style: Variable 'file_path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2976:11: style: Variable 'top_dir_path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2997:40: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:3013:40: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:3029:41: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:3044:43: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1074:55: style: Condition 'save_branch_repo_map(seaf->repo_mgr,branch)<0' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1074:30: note: Calling function 'save_branch_repo_map' returns 0 haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1074:55: note: Condition 'save_branch_repo_map(seaf->repo_mgr,branch)<0' is always false haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1312:49: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1380:9: error: Memory leak: parts [memleak] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1892:46: style:inconclusive: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:165:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1892:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2642:51: style:inconclusive: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:188:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2642:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2669:55: style:inconclusive: Function 'seaf_repo_manager_get_enc_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:191:55: note: Function 'seaf_repo_manager_get_enc_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2669:55: note: Function 'seaf_repo_manager_get_enc_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3319:54: style:inconclusive: Function 'seaf_repo_manager_set_repo_list_fetched' argument 3 names different: declaration 'user' definition 'username'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:482:54: note: Function 'seaf_repo_manager_set_repo_list_fetched' argument 3 names different: declaration 'user' definition 'username'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3319:54: note: Function 'seaf_repo_manager_set_repo_list_fetched' argument 3 names different: declaration 'user' definition 'username'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3468:44: style:inconclusive: Function 'seaf_repo_manager_delete_account' argument 4 names different: declaration 'remoce_cache' definition 'remove_cache'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:379:44: note: Function 'seaf_repo_manager_delete_account' argument 4 names different: declaration 'remoce_cache' definition 'remove_cache'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3468:44: note: Function 'seaf_repo_manager_delete_account' argument 4 names different: declaration 'remoce_cache' definition 'remove_cache'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4119:60: style:inconclusive: Function 'seaf_repo_manager_flush_account_repo_journals' argument 3 names different: declaration 'username' definition 'user'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:492:60: note: Function 'seaf_repo_manager_flush_account_repo_journals' argument 3 names different: declaration 'username' definition 'user'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4119:60: note: Function 'seaf_repo_manager_flush_account_repo_journals' argument 3 names different: declaration 'username' definition 'user'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1660:40: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1660:40: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:135:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:212:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:276:25: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:277:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:350:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:405:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:516:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:518:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:519:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:832:11: style: Variable 'permission' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:869:11: style: Variable 'permission' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:930:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:931:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1043:26: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1198:55: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1332:39: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1418:52: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1456:55: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2106:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2124:61: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2142:76: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2276:11: style: Variable 'branch_name' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2394:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2516:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2619:31: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2698:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2906:11: style: Variable 'type_str' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3019:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3258:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3425:27: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3426:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3471:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3711:32: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3731:35: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4121:23: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4122:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4300:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4412:67: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2899:17: style: struct member '_LoadRepoInfoRes::name_to_repo' is never used. [unusedStructMember] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3891:38: style: Variable 'worktree' is allocated memory that is never used. [unusedAllocatedMemory] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4508:8: style: Variable 'id' is assigned a value that is never used. [unreadVariable] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3260:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->new_name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3260:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3260:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->new_name,NULL)' is always false haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3266:61: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3266:61: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3266:61: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3292:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3292:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3292:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3322:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3322:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3322:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3337:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3337:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3337:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:578:13: error: Memory leak: task [memleak] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1578:57: style:inconclusive: Function 'seaf_sync_manager_update_account_repo_list' argument 3 names different: declaration 'username' definition 'user'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.h:103:57: note: Function 'seaf_sync_manager_update_account_repo_list' argument 3 names different: declaration 'username' definition 'user'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1578:57: note: Function 'seaf_sync_manager_update_account_repo_list' argument 3 names different: declaration 'username' definition 'user'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3651:41: style:inconclusive: Function 'on_repo_http_uploaded' argument 3 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1118:41: note: Function 'on_repo_http_uploaded' argument 3 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3651:41: note: Function 'on_repo_http_uploaded' argument 3 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4844:25: style:inconclusive: Function 'lock_file_worker' argument 1 names different: declaration 'data' definition 'vdata'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1121:38: note: Function 'lock_file_worker' argument 1 names different: declaration 'data' definition 'vdata'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4844:25: note: Function 'lock_file_worker' argument 1 names different: declaration 'data' definition 'vdata'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5140:31: style:inconclusive: Function 'cache_file_task_worker' argument 1 names different: declaration 'data' definition 'vdata'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1122:44: note: Function 'cache_file_task_worker' argument 1 names different: declaration 'data' definition 'vdata'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5140:31: note: Function 'cache_file_task_worker' argument 1 names different: declaration 'data' definition 'vdata'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:998:40: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:998:40: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1062:35: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1062:35: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3432:44: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3432:44: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3503:43: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3503:43: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3561:39: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3561:39: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3649:40: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3649:40: note: Shadow argument haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:820:24: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:854:31: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1183:41: style: Parameter 'account' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1220:33: style: Parameter 'data' can be declared as pointer to const. However it seems that 'check_space_usage_thread' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1145:43: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1220:33: note: Parameter 'data' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1246:15: style: Variable 'repo_info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1380:52: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1385:44: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1386:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1498:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1558:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1559:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1605:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1637:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1638:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1752:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1777:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1778:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1869:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1893:59: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_http_fileserver_protocol_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1920:53: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1893:59: note: Parameter 'result' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1907:48: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_http_protocol_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1973:49: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1907:48: note: Parameter 'result' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1997:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2068:72: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cmp_sync_info_by_sync_time' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2322:45: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2068:72: note: Parameter 'user_data' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2077:36: style: Parameter 'manager' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2129:48: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2133:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2400:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2401:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2421:22: style: Variable 'server_state' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2429:16: style: Variable 'repo_token' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2590:35: style: Parameter 'account' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2660:30: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2709:40: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2710:41: style: Parameter 'de' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2712:14: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2779:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2848:28: style: Variable 'result' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2980:41: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_head_commit_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3063:50: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2980:41: note: Parameter 'result' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2983:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2984:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2985:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3055:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3056:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3075:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3076:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3114:77: style: Parameter 'ignore_reason' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3201:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3509:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3593:25: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3594:16: style: Variable 'op' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3625:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3710:29: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3719:34: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3829:34: style: Parameter 'st' can be declared as pointer to const. However it seems that 'check_renamed_file_cb' is a callback function, if 'st' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3938:35: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3829:34: note: Parameter 'st' can be declared as pointer to const haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3831:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3886:57: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3953:21: style: Variable 'next_op' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4284:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4285:20: style: Variable 'st' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4344:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4473:34: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4706:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4762:28: style: Parameter 'job' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4803:30: style: Parameter 'job' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4927:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5097:60: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5224:58: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1031:23: warning: Division by result of sizeof(). g_malloc0_n() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:215:9: style: struct member 'SyncErrorInfo::error_id' is never used. [unusedStructMember] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:677:19: style: Variable 'err_level' is assigned a value that is never used. [unreadVariable] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2712:14: style: Variable 'dir' is assigned a value that is never used. [unreadVariable] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3790:31: style: Variable 'allzero' is assigned a value that is never used. [unreadVariable] diff: head haiwen-seadrive-fuse-91b536f/src/block-mgr.c:159:41: style:inconclusive: Function 'seaf_block_manager_foreach_block' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/block-mgr.c:27:49: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/block-mgr.c:27:49: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:86:50: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/branch-mgr.c:86:50: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:191:42: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:191:42: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:319:58: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 6 names different: declaration '' definition 'limit'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:320:60: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 7 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:321:63: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 8 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:505:49: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:506:52: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:518:59: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:519:62: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] 2.20.0 haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:593:15: style: The if condition is the same as the previous if condition [duplicateCondition] haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:590:15: note: First condition haiwen-seadrive-fuse-91b536f/src/commit-mgr.c:593:15: note: Second condition head haiwen-seadrive-fuse-91b536f/src/db.c:120:60: style:inconclusive: Function 'sqlite_foreach_selected_row' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1054:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] 2.20.0 haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1142:5: error: There is an unknown macro here somewhere. Configuration is required. If G_GUINT64_FORMAT is a macro then please configure it. [unknownMacro] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1177:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1183:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:119:30: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1323:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1484:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1544:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1567:38: style:inconclusive: Function 'file_cache_mgr_truncate' argument 3 names different: declaration 'path' definition 'file_path'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.h:75:38: note: Function 'file_cache_mgr_truncate' argument 3 names different: declaration 'path' definition 'file_path'. haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1567:38: note: Function 'file_cache_mgr_truncate' argument 3 names different: declaration 'path' definition 'file_path'. head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1571:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1609:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:160:51: style: Parameter 'file_handle' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1644:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1664:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1685:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1717:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1721:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1731:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1735:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1744:47: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1762:36: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1787:41: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1872:41: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1893:46: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1907:48: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1950:49: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:195:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:1977:48: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2046:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2110:17: style: Variable 'file' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2118:42: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2137:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2195:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2218:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2247:51: style:inconclusive: Function 'file_cache_mgr_traverse_path' argument 5 names different: declaration '' definition 'dir_cb'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2248:37: style:inconclusive: Function 'file_cache_mgr_traverse_path' argument 6 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2261:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2337:37: style: Parameter 'st' can be declared as pointer to const. However it seems that 'load_cached_file_info_cb' is a callback function, if 'st' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2369:39: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2337:37: note: Parameter 'st' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2362:9: error: Memory leak: dir [memleak] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2407:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2521:9: error: Memory leak: dir [memleak] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2561:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2578:49: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2601:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:260:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2626:38: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2635:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2637:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2649:23: style: Variable 'handle' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2652:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2656:17: style: Variable 'cached_file' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2680:25: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2823:48: style: Variable 'file_path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2885:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2885:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2889:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2889:21: style: Variable 'file_path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2935:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2947:13: error: Memory leak: dir [memleak] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2976:11: style: Variable 'top_dir_path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:2997:40: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:3013:40: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:3029:41: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:3044:43: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:318:11: style: Variable 'buffer' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:337:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:351:31: style: Parameter 'contents' can be declared as pointer to const. However it seems that 'get_encrypted_block_cb' is a callback function, if 'contents' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:629:48: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:351:31: note: Parameter 'contents' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:403:58: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:414:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:437:39: style: Parameter 'server_info' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:437:62: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:460:34: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:460:48: style: Parameter 'block_map' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:460:77: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:469:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:502:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:503:11: style: Variable 'file_path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:584:21: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:738:41: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:756:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:852:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:901:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:94:38: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:96:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:98:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/file-cache-mgr.c:99:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:126:51: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:146:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:172:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:198:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:235:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:235:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:236:23: debug: Scope::checkVariable found variable 'new_val' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:295:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:300:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:306:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] 2.20.0 haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:386:72: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:41:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_destroy [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:422:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:429:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:466:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:473:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:527:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:534:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/filelock-mgr.c:85:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1528:38: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 6 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1529:41: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:1597:38: style:inconclusive: Function 'seaf_fs_manager_traverse_path' argument 7 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:53:38: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/fs-mgr.c:53:38: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/job-mgr.c:133:48: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 3 names different: declaration '' definition 'done_func'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/job-mgr.c:134:38: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/obj-store.c:114:35: style:inconclusive: Function 'seaf_obj_store_foreach_obj' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/obj-store.c:21:37: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/obj-store.c:21:37: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:105:30: style: Argument 'poly' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:7:18: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/rabin-checksum.c:105:30: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1043:26: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1074:55: style: Condition 'save_branch_repo_map(seaf->repo_mgr,branch)<0' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1074:30: note: Calling function 'save_branch_repo_map' returns 0 haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1074:55: note: Condition 'save_branch_repo_map(seaf->repo_mgr,branch)<0' is always false head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1198:55: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1216:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT64 [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1312:49: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1332:39: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:135:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1380:9: error: Memory leak: parts [memleak] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1418:52: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1456:55: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] 2.20.0 haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:145:9: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:151:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1660:40: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1660:40: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1686:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_destroy [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1742:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1794:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1834:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1834:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1874:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1892:46: style:inconclusive: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:165:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1892:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:1958:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2106:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2124:61: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:212:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2142:76: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:225:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2276:11: style: Variable 'branch_name' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2394:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2516:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2619:31: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2642:51: style:inconclusive: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:188:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2642:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2647:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2647:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2669:55: style:inconclusive: Function 'seaf_repo_manager_get_enc_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:191:55: note: Function 'seaf_repo_manager_get_enc_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2669:55: note: Function 'seaf_repo_manager_get_enc_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2674:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2674:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2698:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:276:25: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:277:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2899:17: style: struct member '_LoadRepoInfoRes::name_to_repo' is never used. [unusedStructMember] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:2906:11: style: Variable 'type_str' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3019:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3091:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3091:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3119:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3119:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3258:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3283:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3283:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3319:54: style:inconclusive: Function 'seaf_repo_manager_set_repo_list_fetched' argument 3 names different: declaration 'user' definition 'username'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:482:54: note: Function 'seaf_repo_manager_set_repo_list_fetched' argument 3 names different: declaration 'user' definition 'username'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3319:54: note: Function 'seaf_repo_manager_set_repo_list_fetched' argument 3 names different: declaration 'user' definition 'username'. head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3425:27: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3426:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3468:44: style:inconclusive: Function 'seaf_repo_manager_delete_account' argument 4 names different: declaration 'remoce_cache' definition 'remove_cache'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:379:44: note: Function 'seaf_repo_manager_delete_account' argument 4 names different: declaration 'remoce_cache' definition 'remove_cache'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3468:44: note: Function 'seaf_repo_manager_delete_account' argument 4 names different: declaration 'remoce_cache' definition 'remove_cache'. head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3471:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3474:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3474:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:350:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3519:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3519:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3557:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3557:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3711:32: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3731:35: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:377:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3814:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3814:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:3891:38: style: Variable 'worktree' is allocated memory that is never used. [unusedAllocatedMemory] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:405:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4119:60: style:inconclusive: Function 'seaf_repo_manager_flush_account_repo_journals' argument 3 names different: declaration 'username' definition 'user'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/repo-mgr.h:492:60: note: Function 'seaf_repo_manager_flush_account_repo_journals' argument 3 names different: declaration 'username' definition 'user'. haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4119:60: note: Function 'seaf_repo_manager_flush_account_repo_journals' argument 3 names different: declaration 'username' definition 'user'. head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4121:23: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4122:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4226:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EACCES [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:424:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4299:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4299:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4300:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4412:67: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:4508:8: style: Variable 'id' is assigned a value that is never used. [unreadVariable] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:516:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:518:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:519:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:535:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:832:11: style: Variable 'permission' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:869:11: style: Variable 'permission' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:930:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/repo-mgr.c:931:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1031:23: warning: Division by result of sizeof(). g_malloc0_n() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1062:35: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1062:35: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1144:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1183:41: style: Parameter 'account' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1220:33: style: Parameter 'data' can be declared as pointer to const. However it seems that 'check_space_usage_thread' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1145:43: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1220:33: note: Parameter 'data' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1246:15: style: Variable 'repo_info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1380:52: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1385:44: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1386:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1498:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1558:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1559:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1578:57: style:inconclusive: Function 'seaf_sync_manager_update_account_repo_list' argument 3 names different: declaration 'username' definition 'user'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.h:103:57: note: Function 'seaf_sync_manager_update_account_repo_list' argument 3 names different: declaration 'username' definition 'user'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1578:57: note: Function 'seaf_sync_manager_update_account_repo_list' argument 3 names different: declaration 'username' definition 'user'. head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1605:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1637:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1638:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1752:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1777:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1778:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1869:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1893:59: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_http_fileserver_protocol_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1920:53: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1893:59: note: Parameter 'result' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1907:48: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_http_protocol_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1973:49: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1907:48: note: Parameter 'result' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1997:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2068:72: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cmp_sync_info_by_sync_time' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2322:45: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2068:72: note: Parameter 'user_data' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2077:36: style: Parameter 'manager' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2129:48: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2133:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:215:9: style: struct member 'SyncErrorInfo::error_id' is never used. [unusedStructMember] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2400:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2401:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2421:22: style: Variable 'server_state' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2429:16: style: Variable 'repo_token' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2590:35: style: Parameter 'account' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2660:30: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2709:40: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2710:41: style: Parameter 'de' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2712:14: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2712:14: style: Variable 'dir' is assigned a value that is never used. [unreadVariable] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2779:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2848:28: style: Variable 'result' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2980:41: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_head_commit_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3063:50: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2980:41: note: Parameter 'result' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2983:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2984:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:2985:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3055:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3056:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3075:30: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3076:18: style: Variable 'account' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3114:77: style: Parameter 'ignore_reason' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3201:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3260:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->new_name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3260:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3260:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->new_name,NULL)' is always false head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3266:61: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3266:61: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3266:61: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3292:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3292:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3292:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3322:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3322:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3322:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3337:54: style: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false [knownConditionTrueFalse] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3116:20: note: Assignment 'ret=0', assigned value is 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3337:54: note: Calling function 'seaf_sync_manager_ignored_on_checkout' returns 0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3337:54: note: Condition 'seaf_sync_manager_ignored_on_checkout(de->name,NULL)' is always false head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3432:44: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3432:44: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3503:43: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3503:43: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3509:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3561:39: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3561:39: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3593:25: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3594:16: style: Variable 'op' can be declared as pointer to const [constVariablePointer] 2.20.0 haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3597:5: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3625:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3649:40: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3649:40: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3651:41: style:inconclusive: Function 'on_repo_http_uploaded' argument 3 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1118:41: note: Function 'on_repo_http_uploaded' argument 3 names different: declaration 'mgr' definition 'manager'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3651:41: note: Function 'on_repo_http_uploaded' argument 3 names different: declaration 'mgr' definition 'manager'. head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3710:29: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3719:34: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3790:31: style: Variable 'allzero' is assigned a value that is never used. [unreadVariable] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3829:34: style: Parameter 'st' can be declared as pointer to const. However it seems that 'check_renamed_file_cb' is a callback function, if 'st' is declared with const you might also need to cast function pointer(s). [constParameterCallback] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3938:35: note: You might need to cast the function pointer here haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3829:34: note: Parameter 'st' can be declared as pointer to const head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3831:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3886:57: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3953:21: style: Variable 'next_op' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:3962:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT64 [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4243:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4243:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4284:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4285:20: style: Variable 'st' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4344:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4473:34: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4705:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4705:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4706:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4762:28: style: Parameter 'job' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4803:30: style: Parameter 'job' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4844:25: style:inconclusive: Function 'lock_file_worker' argument 1 names different: declaration 'data' definition 'vdata'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1121:38: note: Function 'lock_file_worker' argument 1 names different: declaration 'data' definition 'vdata'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4844:25: note: Function 'lock_file_worker' argument 1 names different: declaration 'data' definition 'vdata'. head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:4927:22: style: Variable 'state' can be declared as pointer to const [constVariablePointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5097:60: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5140:31: style:inconclusive: Function 'cache_file_task_worker' argument 1 names different: declaration 'data' definition 'vdata'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:1122:44: note: Function 'cache_file_task_worker' argument 1 names different: declaration 'data' definition 'vdata'. haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5140:31: note: Function 'cache_file_task_worker' argument 1 names different: declaration 'data' definition 'vdata'. head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:5224:58: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:578:13: error: Memory leak: task [memleak] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:677:19: style: Variable 'err_level' is assigned a value that is never used. [unreadVariable] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:820:24: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:854:31: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] head haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:998:40: style: Argument 'seaf' shadows outer variable [shadowVariable] haiwen-seadrive-fuse-91b536f/src/seafile-session.h:109:24: note: Shadowed variable haiwen-seadrive-fuse-91b536f/src/sync-mgr.c:998:40: note: Shadow argument head haiwen-seadrive-fuse-91b536f/src/timer.c:74:33: style:inconclusive: Function 'seaf_timer_new' argument 2 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head haiwen-seadrive-fuse-91b536f/src/timer.c:75:33: style:inconclusive: Function 'seaf_timer_new' argument 3 names different: declaration '' definition 'interval_milliseconds'. [funcArgNamesDifferentUnnamed] 2.20.0 haiwen-seadrive-fuse-91b536f/src/timer.c:75:33: style:inconclusive: Function 'seaf_timer_new' argument 3 names different: declaration 'timeout_milliseconds' definition 'interval_milliseconds'. [funcArgNamesDifferent] haiwen-seadrive-fuse-91b536f/src/timer.h:20:46: note: Function 'seaf_timer_new' argument 3 names different: declaration 'timeout_milliseconds' definition 'interval_milliseconds'. haiwen-seadrive-fuse-91b536f/src/timer.c:75:33: note: Function 'seaf_timer_new' argument 3 names different: declaration 'timeout_milliseconds' definition 'interval_milliseconds'. DONE