2025-06-26 10:18 ftp://ftp.de.debian.org/debian/pool/main/c/chrony/chrony_4.7.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-62-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: a7f827d (2025-06-26 10:54:57 +0200) count: 519 517 elapsed-time: 25.0 26.7 head-timing-info: old-timing-info: head results: chrony-4.7/addrfilt.c:354:23: style:inconclusive: Function 'ADF_IsAllowed' argument 2 names different: declaration 'ip' definition 'ip_addr'. [funcArgNamesDifferent] chrony-4.7/addrfilt.h:73:34: note: Function 'ADF_IsAllowed' argument 2 names different: declaration 'ip' definition 'ip_addr'. chrony-4.7/addrfilt.c:354:23: note: Function 'ADF_IsAllowed' argument 2 names different: declaration 'ip' definition 'ip_addr'. chrony-4.7/addrfilt.c:74:22: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/array.c:111:45: style: Parameter 'element' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:94:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:1341:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:1517:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:1828:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIX32 [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:2678:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNu32 [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:2758:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:3215:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:3454:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHRONY_VERSION [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:3478:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_COMMAND_SOCKET [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:3501:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] chrony-4.7/client.c:1839:14: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/client.c:943:11: style: Condition 'opt_name' is always false [knownConditionTrueFalse] chrony-4.7/client.c:942:18: note: Assignment 'opt_name=NULL', assigned value is 0 chrony-4.7/client.c:943:11: note: Condition 'opt_name' is always false chrony-4.7/client.c:3178:26: style: Condition 'cmac_length>0' is always false [knownConditionTrueFalse] chrony-4.7/client.c:3173:17: note: Assignment 'cmac_length=0', assigned value is 0 chrony-4.7/client.c:3178:26: note: Condition 'cmac_length>0' is always false chrony-4.7/client.c:1756:44: style: Clarify calculation precedence for '^' and '?'. [clarifyCalculation] chrony-4.7/client.c:333:28: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:668:51: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:828:45: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:844:48: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:860:43: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:878:45: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:1662:20: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] chrony-4.7/client.c:1663:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] chrony-4.7/client.c:1922:25: style: Parameter 'ip_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:2797:27: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:2839:46: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:2919:50: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:2960:44: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:2975:43: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/client.c:3034:28: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:578:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/clientlog.c:908:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/clientlog.c:350:22: style: Variable '*tokens_per_packet' is reassigned a value before the old one has been used. [redundantAssignment] chrony-4.7/clientlog.c:346:24: note: *tokens_per_packet is assigned chrony-4.7/clientlog.c:350:22: note: *tokens_per_packet is overwritten chrony-4.7/clientlog.c:601:26: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] chrony-4.7/clientlog.c:218:20: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:453:39: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:534:19: style: Parameter 'record' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:765:27: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:798:43: style: Parameter 'rx_ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:798:67: style: Parameter 'tx_ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:824:27: style: Parameter 'tss' can be declared as pointer to const [constParameterPointer] chrony-4.7/clientlog.c:915:30: style: Parameter 'raw' can be declared as pointer to const. However it seems that 'handle_slew' is a callback function, if 'raw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/clientlog.c:447:36: note: You might need to cast the function pointer here chrony-4.7/clientlog.c:915:30: note: Parameter 'raw' can be declared as pointer to const chrony-4.7/clientlog.c:915:52: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'handle_slew' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/clientlog.c:447:36: note: You might need to cast the function pointer here chrony-4.7/clientlog.c:915:52: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/clientlog.c:916:63: style: Parameter 'anything' can be declared as pointer to const. However it seems that 'handle_slew' is a callback function, if 'anything' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/clientlog.c:447:36: note: You might need to cast the function pointer here chrony-4.7/clientlog.c:916:63: note: Parameter 'anything' can be declared as pointer to const chrony-4.7/cmac_gnutls.c:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_MAC_AES_CMAC_128 [valueFlowBailoutIncompleteVar] chrony-4.7/cmac_gnutls.c:100:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_MAC_UNKNOWN [valueFlowBailoutIncompleteVar] chrony-4.7/cmac_nettle.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES128_KEY_SIZE [valueFlowBailoutIncompleteVar] chrony-4.7/cmac_nettle.c:92:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMAC128_DIGEST_SIZE [valueFlowBailoutIncompleteVar] chrony-4.7/cmdmon.c:109:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] chrony-4.7/cmdmon.c:255:26: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:255:49: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:409:42: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:409:65: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:417:37: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:417:60: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:446:27: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:446:50: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:463:28: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:497:33: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:564:27: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:564:50: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:789:27: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:789:50: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:800:29: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:865:32: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:894:33: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:954:31: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:954:54: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:962:46: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1041:35: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1077:39: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1077:62: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1087:30: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1087:53: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1095:29: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1095:52: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1192:30: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1192:53: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1204:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] chrony-4.7/cmdmon.c:1228:36: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1228:59: style: Parameter 'tx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdmon.c:1300:33: style: Parameter 'rx_message' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdparse.c:111:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNu32 [valueFlowBailoutIncompleteVar] chrony-4.7/cmdparse.c:275:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/cmdparse.c:425:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNu32 [valueFlowBailoutIncompleteVar] chrony-4.7/cmdparse.c:208:27: style: Parameter 'option' can be declared as pointer to const [constParameterPointer] chrony-4.7/cmdparse.c:414:24: style: Variable 's4' can be declared as pointer to const [constVariablePointer] chrony-4.7/cmdparse.c:442:22: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/conf.c:452:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_RTC_DEVICE [valueFlowBailoutIncompleteVar] chrony-4.7/conf.c:479:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] chrony-4.7/conf.c:822:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/conf.c:1297:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNu32 [valueFlowBailoutIncompleteVar] chrony-4.7/conf.c:1718:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOB_NOSORT [valueFlowBailoutIncompleteVar] chrony-4.7/conf.c:1802:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOB_NOMATCH [valueFlowBailoutIncompleteVar] chrony-4.7/conf.c:423:20: style:inconclusive: Function 'CNF_Initialise' argument 1 names different: declaration 'restarted' definition 'r'. [funcArgNamesDifferent] chrony-4.7/conf.h:36:32: note: Function 'CNF_Initialise' argument 1 names different: declaration 'restarted' definition 'r'. chrony-4.7/conf.c:423:20: note: Function 'CNF_Initialise' argument 1 names different: declaration 'restarted' definition 'r'. chrony-4.7/conf.c:960:48: style: Local variable 'min_samples' shadows outer variable [shadowVariable] chrony-4.7/conf.c:180:12: note: Shadowed declaration chrony-4.7/conf.c:960:48: note: Shadow variable chrony-4.7/conf.c:960:61: style: Local variable 'max_samples' shadows outer variable [shadowVariable] chrony-4.7/conf.c:179:12: note: Shadowed declaration chrony-4.7/conf.c:960:61: note: Shadow variable chrony-4.7/conf.c:916:23: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/conf.c:1193:25: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] chrony-4.7/conf.c:1399:28: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] getdate.c:1092:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] getdate.y:901:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] getdate.y:1000:24: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] getdate.c:1177:3: style: The comparison '0 <= gd_state' is always true. [knownConditionTrueFalse] getdate.c:1119:31: note: 'gd_state' is assigned value '0' here. getdate.c:1177:3: note: The comparison '0 <= gd_state' is always true. getdate.y:644:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] getdate.y:874:20: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] getdate.y:874:34: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] getdate.y:896:23: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] getdate.c:1092:11: style: Variable 'yymsg' is assigned a value that is never used. [unreadVariable] chrony-4.7/md5.c:212:43: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] chrony-4.7/hash_nettle.c:76:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nettle_hashes [valueFlowBailoutIncompleteVar] chrony-4.7/hash_tomcrypt.c:114:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CRYPT_OK [valueFlowBailoutIncompleteVar] chrony-4.7/hwclock.c:93:52: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'handle_slew' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/hwclock.c:143:36: note: You might need to cast the function pointer here chrony-4.7/hwclock.c:93:52: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/hwclock.c:153:57: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/hwclock.c:255:59: style: Parameter 'hw_ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/hwclock.c:256:39: style: Parameter 'local_ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/hwclock.c:322:51: style: Parameter 'raw' can be declared as pointer to const [constParameterPointer] chrony-4.7/hwclock.c:194:19: warning: Uninitialized variable: min_delay [uninitvar] chrony-4.7/hwclock.c:188:15: note: Assuming condition is false chrony-4.7/hwclock.c:194:19: note: Uninitialized variable: min_delay chrony-4.7/keys.c:210:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/keys.c:278:18: style: Variable 'where' can be declared as pointer to const [constVariablePointer] chrony-4.7/keys.c:278:26: style: Variable 'keys_ptr' can be declared as pointer to const [constVariablePointer] chrony-4.7/keys.c:353:8: style: Variable 'key' can be declared as pointer to const [constVariablePointer] chrony-4.7/keys.c:368:8: style: Variable 'key' can be declared as pointer to const [constVariablePointer] chrony-4.7/keys.c:339:50: error: Uninitialized variable: buf [uninitvar] chrony-4.7/leapdb.c:140:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNd64 [valueFlowBailoutIncompleteVar] chrony-4.7/leapdb.c:59:8: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/leapdb.c:198:65: style: Condition 'tai_offset==35' is always false [knownConditionTrueFalse] chrony-4.7/leapdb.c:197:71: note: Assuming that condition 'tai_offset==34' is not redundant chrony-4.7/leapdb.c:198:65: note: Condition 'tai_offset==35' is always false chrony-4.7/leapdb.c:54:19: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] chrony-4.7/leapdb.c:56:9: style: Variable 'tz_env' can be declared as pointer to const [constVariablePointer] chrony-4.7/local.c:356:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/local.c:365:37: style:inconclusive: Function 'LCL_ReadCookedTime' argument 1 names different: declaration 'ts' definition 'result'. [funcArgNamesDifferent] chrony-4.7/local.h:46:49: note: Function 'LCL_ReadCookedTime' argument 1 names different: declaration 'ts' definition 'result'. chrony-4.7/local.c:365:37: note: Function 'LCL_ReadCookedTime' argument 1 names different: declaration 'ts' definition 'result'. chrony-4.7/local.c:443:33: style:inconclusive: Function 'LCL_SetAbsoluteFrequency' argument 1 names different: declaration 'afreq' definition 'afreq_ppm'. [funcArgNamesDifferent] chrony-4.7/local.h:136:45: note: Function 'LCL_SetAbsoluteFrequency' argument 1 names different: declaration 'afreq' definition 'afreq_ppm'. chrony-4.7/local.c:443:33: note: Function 'LCL_SetAbsoluteFrequency' argument 1 names different: declaration 'afreq' definition 'afreq_ppm'. chrony-4.7/local.c:244:81: style: Parameter 'anything' can be declared as pointer to const [constParameterPointer] chrony-4.7/local.c:319:83: style: Parameter 'anything' can be declared as pointer to const [constParameterPointer] chrony-4.7/local.c:427:31: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/logging.c:94:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:115:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:215:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:237:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:257:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:307:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:423:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] chrony-4.7/logging.c:157:10: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/logging.c:289:34: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] chrony-4.7/logging.c:149:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] chrony-4.7/logging.c:362:11: style: Variable 'logdir' can be declared as pointer to const [constVariablePointer] chrony-4.7/main.c:357:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/main.c:487:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_CONF_FILE [valueFlowBailoutIncompleteVar] chrony-4.7/main.c:643:8: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] chrony-4.7/main.c:198:20: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'quit_timeout' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/main.c:726:36: note: You might need to cast the function pointer here chrony-4.7/main.c:198:20: note: Parameter 'arg' can be declared as pointer to const chrony-4.7/main.c:288:26: style: Parameter 'anything' can be declared as pointer to const. However it seems that 'post_init_rtc_hook' is a callback function, if 'anything' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/main.c:729:18: note: You might need to cast the function pointer here chrony-4.7/main.c:288:26: note: Parameter 'anything' can be declared as pointer to const chrony-4.7/main.c:489:23: style: Variable 'log_file' can be declared as pointer to const [constVariablePointer] chrony-4.7/main.c:490:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] chrony-4.7/manual.c:171:38: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/manual.c:223:31: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'slew_samples' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/manual.c:95:36: note: You might need to cast the function pointer here chrony-4.7/manual.c:223:31: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/nameserv.c:75:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] chrony-4.7/nameserv.c:140:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] chrony-4.7/nameserv.c:53:33: style: Variable 'ai' can be declared as pointer to const [constVariablePointer] chrony-4.7/nameserv.c:130:28: style: Parameter 'ip_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/nameserv.c:132:9: style: Variable 'result' can be declared as pointer to const [constVariablePointer] chrony-4.7/nameserv_async.c:129:0: error: #error [preprocessorErrorDirective] chrony-4.7/nameserv_async.c:129:2: error: #error [preprocessorErrorDirective] chrony-4.7/ntp_auth.c:70:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_auth.c:140:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_core.c:484:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sock_fd [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_core.c:2343:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_core.c:2720:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_core.c:3106:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPT_NTP_CLIENT [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_core.c:770:32: style:inconclusive: Function 'NCR_ResetInstance' argument 1 names different: declaration 'inst' definition 'instance'. [funcArgNamesDifferent] chrony-4.7/ntp_core.h:68:44: note: Function 'NCR_ResetInstance' argument 1 names different: declaration 'inst' definition 'instance'. chrony-4.7/ntp_core.c:770:32: note: Function 'NCR_ResetInstance' argument 1 names different: declaration 'inst' definition 'instance'. chrony-4.7/ntp_core.c:3228:35: style:inconclusive: Function 'NCR_GetRemoteAddress' argument 1 names different: declaration 'instance' definition 'inst'. [funcArgNamesDifferent] chrony-4.7/ntp_core.h:132:62: note: Function 'NCR_GetRemoteAddress' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/ntp_core.c:3228:35: note: Function 'NCR_GetRemoteAddress' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/ntp_core.c:3243:33: style:inconclusive: Function 'NCR_IsSyncPeer' argument 1 names different: declaration 'instance' definition 'inst'. [funcArgNamesDifferent] chrony-4.7/ntp_core.h:136:40: note: Function 'NCR_IsSyncPeer' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/ntp_core.c:3243:33: note: Function 'NCR_IsSyncPeer' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/ntp_core.c:1058:78: style: Parameter 'rx' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:1094:44: style: Parameter 'local_rx' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:1527:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:1919:53: style: Parameter 'local_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:1920:36: style: Parameter 'rx_ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:1920:55: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:1920:80: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:2786:32: style: Parameter 'local_ntp_rx' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:2786:57: style: Parameter 'local_ntp_tx' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_core.c:3284:49: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_ext.c:68:30: style: Parameter 'body' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_ext.c:111:30: style: Parameter 'body' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_io.c:141:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_io.c:100:9: style: Variable 'iface' can be declared as pointer to const [constVariablePointer] chrony-4.7/ntp_io.c:317:42: style: Parameter 'remote_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_io.c:504:19: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] chrony-4.7/ntp_io.c:587:56: style: Parameter 'remote_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_io_linux.c:117:88: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_io_linux.c:271:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_io_linux.c:304:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETHTOOL_GSET [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_io_linux.c:394:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOF_TIMESTAMPING_SOFTWARE [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_io_linux.c:262:39: style: Parameter 'conf_iface_all' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_signd.c:127:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/ntp_signd.c:305:52: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_signd.c:305:76: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_signd.c:306:43: style: Parameter 'remote_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_signd.c:306:75: style: Parameter 'local_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_sources.c:1446:52: style:inconclusive: Function 'NSR_ModifyMaxdelaydevratio' argument 2 names different: declaration 'new_max_delay_ratio' definition 'new_max_delay_dev_ratio'. [funcArgNamesDifferent] chrony-4.7/ntp_sources.h:139:63: note: Function 'NSR_ModifyMaxdelaydevratio' argument 2 names different: declaration 'new_max_delay_ratio' definition 'new_max_delay_dev_ratio'. chrony-4.7/ntp_sources.c:1446:52: note: Function 'NSR_ModifyMaxdelaydevratio' argument 2 names different: declaration 'new_max_delay_ratio' definition 'new_max_delay_dev_ratio'. chrony-4.7/ntp_sources.c:239:19: style: Parameter 'ip_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_sources.c:366:51: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_sources.c:610:31: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'resolve_sources_timeout' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/ntp_sources.c:673:44: note: You might need to cast the function pointer here chrony-4.7/ntp_sources.c:610:31: note: Parameter 'arg' can be declared as pointer to const chrony-4.7/ntp_sources.c:778:17: style: Variable 'record' can be declared as pointer to const [constVariablePointer] chrony-4.7/ntp_sources.c:1352:29: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_sources.c:1352:43: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_sources.c:1503:33: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] chrony-4.7/ntp_sources.c:1503:47: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ke_client.c:346:32: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ke_client.c:418:21: style: Variable 'iface' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_server.c:116:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:272:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:549:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIX32 [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:588:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIX32 [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:646:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIX32 [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:785:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:1013:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIX32 [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_server.c:109:40: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ke_server.c:300:9: style: Variable 'iface' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_server.c:346:9: style: Variable 'ntp_server' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_server.c:559:42: style: Variable 'dump_dir' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_server.c:619:9: style: Variable 'dump_dir' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_server.c:992:18: style: Variable 'nonce' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_server.c:992:61: style: Variable 'ciphertext' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ke_session.c:220:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_NONBLOCK [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_session.c:379:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_session.c:672:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_X509_FMT_PEM [valueFlowBailoutIncompleteVar] chrony-4.7/nts_ke_session.c:586:30: style: Parameter 'raw' can be declared as pointer to const. However it seems that 'handle_step' is a callback function, if 'raw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/nts_ke_session.c:640:36: note: You might need to cast the function pointer here chrony-4.7/nts_ke_session.c:586:30: note: Parameter 'raw' can be declared as pointer to const chrony-4.7/nts_ke_session.c:586:52: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'handle_step' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/nts_ke_session.c:640:36: note: You might need to cast the function pointer here chrony-4.7/nts_ke_session.c:586:52: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/nts_ke_session.c:587:63: style: Parameter 'anything' can be declared as pointer to const. However it seems that 'handle_step' is a callback function, if 'anything' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/nts_ke_session.c:640:36: note: You might need to cast the function pointer here chrony-4.7/nts_ke_session.c:587:63: note: Parameter 'anything' can be declared as pointer to const chrony-4.7/nts_ke_session.c:652:58: style: Parameter 'trusted_certs_ids' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ke_session.c:886:13: style: struct member 'Anonymous10::_pad' is never used. [unusedStructMember] chrony-4.7/nts_ntp_auth.c:129:55: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ntp_auth.c:133:26: style: Variable 'ciphertext' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ntp_client.c:124:32: style: Parameter 'nts_address' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ntp_client.c:195:56: style: Parameter 'negotiated_address' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ntp_client.c:548:46: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] chrony-4.7/nts_ntp_client.c:567:45: style: Variable 'dump_dir' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ntp_client.c:627:46: style: Variable 'dump_dir' can be declared as pointer to const [constVariablePointer] chrony-4.7/nts_ntp_server.c:248:63: style: Parameter 'req_info' can be declared as pointer to const [constParameterPointer] chrony-4.7/pktlength.c:191:39: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] chrony-4.7/pktlength.c:209:28: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] chrony-4.7/privops.c:379:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/privops.c:418:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/privops.c:175:16: style: Variable 'message' can be declared as pointer to const [constVariablePointer] chrony-4.7/privops.c:73:13: style: struct member 'ReqBindSocket::sa_len' is never used. [unusedStructMember] chrony-4.7/privops.c:74:23: style: struct member 'ReqBindSocket::sa' is never used. [unusedStructMember] chrony-4.7/privops.c:78:8: style: struct member 'ReqName2IPAddress::name' is never used. [unusedStructMember] chrony-4.7/privops.c:84:19: style: union member 'Anonymous10::adjust_time' is never used. [unusedStructMember] chrony-4.7/privops.c:88:16: style: union member 'Anonymous10::set_time' is never used. [unusedStructMember] chrony-4.7/privops.c:109:10: style: struct member 'ResName2IPAddress::addresses' is never used. [unusedStructMember] chrony-4.7/privops.c:122:19: style: union member 'Anonymous11::adjust_time' is never used. [unusedStructMember] chrony-4.7/refclock.c:310:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPT_LOCAL_REFERENCE [valueFlowBailoutIncompleteVar] chrony-4.7/refclock.c:386:50: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] chrony-4.7/refclock.c:408:37: style: Parameter 'sample_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/refclock.c:430:59: style: Parameter 'sample_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/refclock.c:446:32: style: Parameter 'ref_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/refclock.c:679:59: style: Parameter 'sample_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/refclock.c:849:52: style: Parameter 'sample_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/refclock.c:54:10: style: struct member 'FilterSample::offset' is never used. [unusedStructMember] chrony-4.7/refclock.c:55:10: style: struct member 'FilterSample::dispersion' is never used. [unusedStructMember] chrony-4.7/refclock.c:56:19: style: struct member 'FilterSample::sample_time' is never used. [unusedStructMember] chrony-4.7/refclock_shm.c:73:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_CREAT [valueFlowBailoutIncompleteVar] chrony-4.7/refclock_shm.c:64:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] chrony-4.7/refclock_sock.c:94:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/reference.c:497:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAIL_PROGRAM [valueFlowBailoutIncompleteVar] chrony-4.7/reference.c:509:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] chrony-4.7/reference.c:578:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/reference.c:314:27: style:inconclusive: Function 'REF_SetMode' argument 1 names different: declaration 'mode' definition 'new_mode'. [funcArgNamesDifferent] chrony-4.7/reference.h:61:34: note: Function 'REF_SetMode' argument 1 names different: declaration 'mode' definition 'new_mode'. chrony-4.7/reference.c:314:27: note: Function 'REF_SetMode' argument 1 names different: declaration 'mode' definition 'new_mode'. chrony-4.7/reference.c:1141:12: style:inconclusive: Function 'REF_GetReferenceParams' argument 3 names different: declaration 'leap' definition 'leap_status'. [funcArgNamesDifferent] chrony-4.7/reference.h:104:12: note: Function 'REF_GetReferenceParams' argument 3 names different: declaration 'leap' definition 'leap_status'. chrony-4.7/reference.c:1141:12: note: Function 'REF_GetReferenceParams' argument 3 names different: declaration 'leap' definition 'leap_status'. chrony-4.7/reference.c:166:30: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'handle_slew' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/reference.c:305:36: note: You might need to cast the function pointer here chrony-4.7/reference.c:166:30: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/reference.c:487:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] chrony-4.7/reference.c:576:14: style: Variable 'stm' can be declared as pointer to const [constVariablePointer] chrony-4.7/reference.c:590:24: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'leap_end_timeout' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/reference.c:636:48: note: You might need to cast the function pointer here chrony-4.7/reference.c:590:24: note: Parameter 'arg' can be declared as pointer to const chrony-4.7/reference.c:730:38: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/reference.c:913:43: style: Parameter 'ref_ip' can be declared as pointer to const [constParameterPointer] chrony-4.7/reference.c:913:68: style: Parameter 'ref_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/reference.c:1319:44: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/reference.c:1337:35: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:392:24: style: Condition 'index>r' is always true [knownConditionTrueFalse] chrony-4.7/regress.c:388:17: note: Assuming that condition 'index==r' is not redundant chrony-4.7/regress.c:392:24: note: Condition 'index>r' is always true chrony-4.7/regress.c:41:10: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:42:10: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:43:10: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:176:31: style: Parameter 'resid' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:200:10: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:201:10: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:202:10: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:435:24: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:455:10: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:456:10: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:657:10: style: Parameter 'x1' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:658:10: style: Parameter 'x2' can be declared as pointer to const [constParameterPointer] chrony-4.7/regress.c:659:10: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] chrony-4.7/rtc.c:118:9: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] chrony-4.7/rtc_linux.c:222:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:504:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTC_UIE_OFF [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:525:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:616:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTC_SET_TIME [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:775:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:802:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTC_RD_TIME [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:947:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTC_RD_TIME [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:981:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] chrony-4.7/rtc_linux.c:305:14: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/rtc_linux.c:307:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] chrony-4.7/rtc_linux.c:376:14: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/rtc_linux.c:376:28: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] chrony-4.7/rtc_linux.c:937:40: style:inconclusive: Function 'RTC_Linux_ReadTimeNow' argument 3 names different: declaration 'sys_time_cooked' definition 'old_sys_cooked'. [funcArgNamesDifferent] chrony-4.7/rtc_linux.h:51:54: note: Function 'RTC_Linux_ReadTimeNow' argument 3 names different: declaration 'sys_time_cooked' definition 'old_sys_cooked'. chrony-4.7/rtc_linux.c:937:40: note: Function 'RTC_Linux_ReadTimeNow' argument 3 names different: declaration 'sys_time_cooked' definition 'old_sys_cooked'. chrony-4.7/rtc_linux.c:938:40: style:inconclusive: Function 'RTC_Linux_ReadTimeNow' argument 4 names different: declaration 'sys_time_raw' definition 'old_sys_raw'. [funcArgNamesDifferent] chrony-4.7/rtc_linux.h:52:54: note: Function 'RTC_Linux_ReadTimeNow' argument 4 names different: declaration 'sys_time_raw' definition 'old_sys_raw'. chrony-4.7/rtc_linux.c:938:40: note: Function 'RTC_Linux_ReadTimeNow' argument 4 names different: declaration 'sys_time_raw' definition 'old_sys_raw'. chrony-4.7/rtc_linux.c:969:30: style:inconclusive: Function 'RTC_Linux_TimePreInit' argument 1 names different: declaration 'driftile_time' definition 'driftfile_time'. [funcArgNamesDifferent] chrony-4.7/rtc_linux.h:33:41: note: Function 'RTC_Linux_TimePreInit' argument 1 names different: declaration 'driftile_time' definition 'driftfile_time'. chrony-4.7/rtc_linux.c:969:30: note: Function 'RTC_Linux_TimePreInit' argument 1 names different: declaration 'driftile_time' definition 'driftfile_time'. chrony-4.7/rtc_linux.c:974:7: style: Local variable 'fd' shadows outer variable [shadowVariable] chrony-4.7/rtc_linux.c:68:12: note: Shadowed declaration chrony-4.7/rtc_linux.c:974:7: note: Shadow variable chrony-4.7/rtc_linux.c:178:48: style: Parameter 'sys' can be declared as pointer to const [constParameterPointer] chrony-4.7/rtc_linux.c:260:41: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'slew_samples' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/rtc_linux.c:591:38: note: You might need to cast the function pointer here chrony-4.7/rtc_linux.c:260:41: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/rtc_linux.c:303:14: style: Variable 'rtc_tm' can be declared as pointer to const [constVariablePointer] chrony-4.7/rtc_linux.c:356:29: style: Parameter 'rtc_raw' can be declared as pointer to const [constParameterPointer] chrony-4.7/rtc_linux.c:358:36: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] chrony-4.7/rtc_linux.c:600:27: style: Parameter 'any' can be declared as pointer to const. However it seems that 'measurement_timeout' is a callback function, if 'any' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/rtc_linux.c:882:71: note: You might need to cast the function pointer here chrony-4.7/rtc_linux.c:600:27: note: Parameter 'any' can be declared as pointer to const chrony-4.7/samplefilt.c:457:55: style: Parameter 'when' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:183:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] chrony-4.7/sched.c:814:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/sched.c:331:33: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:563:58: style: Parameter 'write_fds' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:563:77: style: Parameter 'except_fds' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:605:30: style: Parameter 'cooked' can be declared as pointer to const. However it seems that 'handle_slew' is a callback function, if 'cooked' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/sched.c:618:46: note: You might need to cast the function pointer here chrony-4.7/sched.c:605:30: note: Parameter 'cooked' can be declared as pointer to const chrony-4.7/sched.c:693:37: style: Parameter 'prev_raw' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:694:36: style: Parameter 'orig_select_tv' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:695:36: style: Parameter 'rem_select_tv' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:745:40: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/sched.c:745:62: style: Parameter 'before' can be declared as pointer to const [constParameterPointer] chrony-4.7/siv_gnutls.c:85:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNUTLS_CIPHER_AES_128_SIV [valueFlowBailoutIncompleteVar] chrony-4.7/siv_nettle.c:70:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIV_MIN_NONCE_SIZE [valueFlowBailoutIncompleteVar] chrony-4.7/siv_nettle.c:101:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES128_KEY_SIZE [valueFlowBailoutIncompleteVar] chrony-4.7/smooth.c:100:32: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/smooth.c:300:31: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/smooth.c:312:28: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/socket.c:257:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:313:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:334:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:500:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:520:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:548:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:617:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:636:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:666:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:680:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:715:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:758:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:770:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:922:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1160:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1398:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1419:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_LOOPBACK [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1463:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1471:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1479:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1487:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1503:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1536:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1552:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1590:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1608:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1627:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RDWR [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1676:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1731:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1769:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:1797:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] chrony-4.7/socket.c:360:15: style: Condition 'sock_fd<0' is always true [knownConditionTrueFalse] chrony-4.7/socket.c:358:32: note: Calling function 'get_reusable_socket' returns -4 chrony-4.7/socket.c:358:32: note: Assignment 'sock_fd=get_reusable_socket(type,ip_sa)', assigned value is -4 chrony-4.7/socket.c:360:15: note: Condition 'sock_fd<0' is always true chrony-4.7/socket.c:566:7: style: Condition '!set_socket_options(sock_fd,flags)' is always false [knownConditionTrueFalse] chrony-4.7/socket.c:566:26: note: Calling function 'set_socket_options' returns 1 chrony-4.7/socket.c:566:7: note: Condition '!set_socket_options(sock_fd,flags)' is always false chrony-4.7/socket.c:569:7: style: Condition '!set_ip_options(sock_fd,family,flags)' is always false [knownConditionTrueFalse] chrony-4.7/socket.c:569:22: note: Calling function 'set_ip_options' returns 1 chrony-4.7/socket.c:569:7: note: Condition '!set_ip_options(sock_fd,family,flags)' is always false chrony-4.7/socket.c:572:16: style: Condition '!bind_device(sock_fd,iface)' is always true [knownConditionTrueFalse] chrony-4.7/socket.c:572:28: note: Calling function 'bind_device' returns 0 chrony-4.7/socket.c:572:16: note: Condition '!bind_device(sock_fd,iface)' is always true chrony-4.7/socket.c:684:7: style: Condition '!set_socket_options(sock_fd,flags)' is always false [knownConditionTrueFalse] chrony-4.7/socket.c:684:26: note: Calling function 'set_socket_options' returns 1 chrony-4.7/socket.c:684:7: note: Condition '!set_socket_options(sock_fd,flags)' is always false chrony-4.7/socket.c:1512:20: style:inconclusive: Function 'SCK_IsReusable' argument 1 names different: declaration 'sock_fd' definition 'fd'. [funcArgNamesDifferent] chrony-4.7/socket.h:113:31: note: Function 'SCK_IsReusable' argument 1 names different: declaration 'sock_fd' definition 'fd'. chrony-4.7/socket.c:1512:20: note: Function 'SCK_IsReusable' argument 1 names different: declaration 'sock_fd' definition 'fd'. chrony-4.7/socket.c:163:43: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] chrony-4.7/socket.c:433:24: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/socket.c:866:28: style: Parameter 'cmsg' can be declared as pointer to const [constParameterPointer] chrony-4.7/socket.c:1762:43: style: Parameter 'sa' can be declared as pointer to const [constParameterPointer] chrony-4.7/socket.c:1793:38: style: Parameter 'ip_sa' can be declared as pointer to const [constParameterPointer] chrony-4.7/socket.c:66:13: style: struct member 'Anonymous8::l234_headers' is never used. [unusedStructMember] chrony-4.7/socket.c:72:7: style: struct member 'Anonymous8::msg' is never used. [unusedStructMember] chrony-4.7/socket.c:68:18: style: union member 'Anonymous9::ntp_msg' is never used. [unusedStructMember] chrony-4.7/socket.c:69:22: style: union member 'Anonymous9::ptp_msg' is never used. [unusedStructMember] chrony-4.7/socket.c:70:19: style: union member 'Anonymous9::cmd_request' is never used. [unusedStructMember] chrony-4.7/socket.c:71:17: style: union member 'Anonymous9::cmd_reply' is never used. [unusedStructMember] chrony-4.7/sources.c:1108:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] chrony-4.7/sources.c:1550:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] chrony-4.7/sources.c:1680:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/sources.c:1833:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPT_FALSETICKER [valueFlowBailoutIncompleteVar] chrony-4.7/sources.c:766:29: warning: Either the condition 'status>=SRC_OK' is redundant or the array 'inst->reported_status[18]' is accessed at index -1, which is out of bounds. [negativeIndex] chrony-4.7/sources.c:764:3: note: Assuming that condition 'status>=SRC_OK' is not redundant chrony-4.7/sources.c:766:29: note: Negative array index chrony-4.7/sources.c:421:31: style:inconclusive: Function 'SRC_UpdateStatus' argument 1 names different: declaration 'instance' definition 'inst'. [funcArgNamesDifferent] chrony-4.7/sources.h:91:43: note: Function 'SRC_UpdateStatus' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/sources.c:421:31: note: Function 'SRC_UpdateStatus' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/sources.c:445:35: style:inconclusive: Function 'SRC_AccumulateSample' argument 1 names different: declaration 'instance' definition 'inst'. [funcArgNamesDifferent] chrony-4.7/sources.h:94:47: note: Function 'SRC_AccumulateSample' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/sources.c:445:35: note: Function 'SRC_AccumulateSample' argument 1 names different: declaration 'instance' definition 'inst'. chrony-4.7/sources.c:644:30: style: Variable 'name' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:644:37: style: Variable 'ntp_name' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:840:53: style: Parameter 'ref_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/sources.c:1565:23: style: Variable 'dumpdir' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:1565:33: style: Variable 'ntp_name' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:1614:34: style: Variable 'dumpdir' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:1614:44: style: Variable 'ntp_name' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:1680:38: style: Variable 'dumpdir' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:1680:48: style: Variable 's' can be declared as pointer to const [constVariablePointer] chrony-4.7/sources.c:1773:21: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:386:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/sourcestats.c:528:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/sourcestats.c:843:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/sourcestats.c:766:8: style: Variable 'prev' is reassigned a value before the old one has been used. [redundantAssignment] chrony-4.7/sourcestats.c:760:10: note: prev is assigned chrony-4.7/sourcestats.c:766:8: note: prev is overwritten chrony-4.7/sourcestats.c:652:30: style:inconclusive: Function 'SST_GetSelectionData' argument 6 names different: declaration 'variance' definition 'std_dev'. [funcArgNamesDifferent] chrony-4.7/sourcestats.h:75:30: note: Function 'SST_GetSelectionData' argument 6 names different: declaration 'variance' definition 'std_dev'. chrony-4.7/sourcestats.c:652:30: note: Function 'SST_GetSelectionData' argument 6 names different: declaration 'variance' definition 'std_dev'. chrony-4.7/sourcestats.c:360:20: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] chrony-4.7/sourcestats.c:373:48: style: Parameter 'times_back' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:648:55: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:747:50: style: Parameter 'when' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:814:52: style: Parameter 'when' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:851:55: style: Parameter 'sample_time' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:955:79: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/sourcestats.c:1000:89: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:70:34: style: Parameter 'ip_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:99:37: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:136:52: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:136:76: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:137:43: style: Parameter 'remote_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:137:75: style: Parameter 'local_addr' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:159:72: style: Parameter 'out' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:191:38: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:191:63: style: Parameter 'req_info' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:192:38: style: Parameter 'response' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:192:64: style: Parameter 'res_info' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:199:32: style: Parameter 'nts_address' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:217:56: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:217:80: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:227:54: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:227:78: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:233:46: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] chrony-4.7/stubs.c:243:50: style: Parameter 'report' can be declared as pointer to const [constParameterPointer] chrony-4.7/sys.c:72:0: error: #error Unknown system [preprocessorErrorDirective] chrony-4.7/sys.c:72:2: error: #error Unknown system [preprocessorErrorDirective] chrony-4.7/sys_generic.c:281:26: style: Parameter 'anything' can be declared as pointer to const. However it seems that 'handle_end_of_slew' is a callback function, if 'anything' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/sys_generic.c:268:50: note: You might need to cast the function pointer here chrony-4.7/sys_generic.c:281:26: note: Parameter 'anything' can be declared as pointer to const chrony-4.7/sys_linux.c:162:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_TICK [valueFlowBailoutIncompleteVar] chrony-4.7/sys_linux.c:337:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_OFFSET_SINGLESHOT [valueFlowBailoutIncompleteVar] chrony-4.7/sys_linux.c:355:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOD_MAXERROR [valueFlowBailoutIncompleteVar] chrony-4.7/sys_linux.c:287:7: style: Condition '!hz' is always true [knownConditionTrueFalse] chrony-4.7/sys_linux.c:285:14: note: Calling function 'get_hz' returns 0 chrony-4.7/sys_linux.c:285:14: note: Assignment 'hz=get_hz()', assigned value is 0 chrony-4.7/sys_linux.c:287:7: note: Condition '!hz' is always true chrony-4.7/sys_null.c:104:33: style: Parameter 'raw' can be declared as pointer to const. However it seems that 'offset_convert' is a callback function, if 'raw' is declared with const you might also need to cast function pointer(s). [constParameterCallback] chrony-4.7/sys_null.c:130:48: note: You might need to cast the function pointer here chrony-4.7/sys_null.c:104:33: note: Parameter 'raw' can be declared as pointer to const chrony-4.7/sys_solaris.c:52:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_value [valueFlowBailoutIncompleteVar] chrony-4.7/sys_timex.c:102:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOD_FREQUENCY [valueFlowBailoutIncompleteVar] chrony-4.7/sys_timex.c:119:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIME_WAIT [valueFlowBailoutIncompleteVar] chrony-4.7/sys_timex.c:181:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STA_UNSYNC [valueFlowBailoutIncompleteVar] chrony-4.7/sys_timex.c:201:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STA_UNSYNC [valueFlowBailoutIncompleteVar] chrony-4.7/sys_timex.c:273:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/tempcomp.c:61:17: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] chrony-4.7/tempcomp.c:61:29: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] chrony-4.7/test/kernel/adjtime.c:52:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/test/kernel/adjtime.c:168:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] chrony-4.7/test/kernel/adjtime.c:29:25: style: Parameter 'tv1' can be declared as pointer to const [constParameterPointer] chrony-4.7/test/kernel/adjtime.c:29:46: style: Parameter 'tv2' can be declared as pointer to const [constParameterPointer] chrony-4.7/test/kernel/adjtime.c:46:29: style: Parameter 'new' can be declared as pointer to const [constParameterPointer] chrony-4.7/test/kernel/ntpadjtime.c:32:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/test/kernel/ntpadjtime.c:41:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOD_OFFSET [valueFlowBailoutIncompleteVar] chrony-4.7/test/kernel/ntpadjtime.c:56:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOD_FREQUENCY [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/addrfilt.c:39:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_INET4 [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/clientlog.c:57:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable records [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/cmac.c:61:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMC_INVALID [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/hash.c:39:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_HASH_LENGTH [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/keys.c:104:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_HASH_LENGTH [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/keys.c:80:5: warning: %hhX in format string (no. 1) requires 'unsigned char' but the argument type is 'char'. [invalidPrintfArgType_uint] chrony-4.7/test/unit/leapdb.c:56:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LEAP_SEC_LIST_OFFSET [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/leapdb.c:88:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_tz_leap [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/leapdb.c:45:25: style: Variable 't' can be declared as pointer to const [constVariablePointer] chrony-4.7/test/unit/ntp_auth.c:45:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SERVER [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_auth.c:115:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTP_EF_NTS_AUTH_AND_EEF [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_auth.c:146:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_INET4 [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:97:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_UNSPEC [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:120:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_UNSPEC [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:152:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTP_HEADER_LENGTH [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:287:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_UNSPEC [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:395:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTP_EF_NTS_AUTH_AND_EEF [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:441:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INACTIVE_AUTHKEY [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_core.c:465:21: style: Variable 'authenticated' is reassigned a value before the old one has been used. [redundantAssignment] chrony-4.7/test/unit/ntp_core.c:462:21: note: authenticated is assigned chrony-4.7/test/unit/ntp_core.c:465:21: note: authenticated is overwritten chrony-4.7/test/unit/ntp_core.c:343:47: style: Parameter 'packet_queue' can be declared as pointer to const [constParameterPointer] chrony-4.7/test/unit/ntp_ext.c:32:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTP_MAX_EXTENSIONS_LENGTH [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_ext.c:41:29: error: Uninitialized variable: packet [uninitvar] chrony-4.7/test/unit/ntp_sources.c:56:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DNS_MAX_ADDRESSES [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_sources.c:79:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_UNSPEC [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_sources.c:99:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable record_lock [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/ntp_sources.c:152:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_sources [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/quantiles.c:76:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable est [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/smooth.c:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable locked [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/socket.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCK_ADDR_UNSPEC [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/socket.c:112:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_INET4 [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/socket.c:215:11: style: The if condition is the same as the previous if condition [duplicateCondition] chrony-4.7/test/unit/socket.c:213:11: note: First condition chrony-4.7/test/unit/socket.c:215:11: note: Second condition chrony-4.7/test/unit/sources.c:27:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_UNSPEC [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/sources.c:53:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REF_ModeIgnore [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/test.c:59:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGS_FATAL [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/test.c:100:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_INET6 [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/test.c:135:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPADDR_INET4 [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/util.c:108:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JAN_1970 [valueFlowBailoutIncompleteVar] chrony-4.7/test/unit/util.c:71:5: warning: Logical disjunction always evaluates to true: x > 0.0 || x <= 0.0. [incorrectLogicOperator] chrony-4.7/test/unit/util.c:71:5: style: Opposite expression on both sides of '||'. [oppositeExpression] chrony-4.7/test/unit/util.c:361:13: style: Variable 'ntp_ts.hi' is reassigned a value before the old one has been used. [redundantAssignment] chrony-4.7/test/unit/util.c:360:13: note: ntp_ts.hi is assigned chrony-4.7/test/unit/util.c:361:13: note: ntp_ts.hi is overwritten chrony-4.7/test/unit/util.c:35:32: style: Variable 's2' can be declared as pointer to const [constVariablePointer] chrony-4.7/util.c:321:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:339:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:373:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCNu32 [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1097:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFD [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1121:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1186:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1274:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1329:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1368:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1436:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1465:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:1494:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] chrony-4.7/util.c:588:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] chrony-4.7/util.c:1598:9: warning: %hhX in format string (no. 1) requires 'unsigned char' but the argument type is 'char'. [invalidPrintfArgType_uint] chrony-4.7/util.c:259:36: style:inconclusive: Function 'UTI_Ntp64ToString' argument 1 names different: declaration 'ts' definition 'ntp_ts'. [funcArgNamesDifferent] chrony-4.7/util.h:103:49: note: Function 'UTI_Ntp64ToString' argument 1 names different: declaration 'ts' definition 'ntp_ts'. chrony-4.7/util.c:259:36: note: Function 'UTI_Ntp64ToString' argument 1 names different: declaration 'ts' definition 'ntp_ts'. chrony-4.7/util.c:290:30: style:inconclusive: Function 'UTI_IPToString' argument 1 names different: declaration 'ip' definition 'addr'. [funcArgNamesDifferent] chrony-4.7/util.h:109:43: note: Function 'UTI_IPToString' argument 1 names different: declaration 'ip' definition 'addr'. chrony-4.7/util.c:290:30: note: Function 'UTI_IPToString' argument 1 names different: declaration 'ip' definition 'addr'. chrony-4.7/util.c:972:30: style:inconclusive: Function 'UTI_FloatNetworkToHost' argument 1 names different: declaration 'x' definition 'f'. [funcArgNamesDifferent] chrony-4.7/util.h:182:44: note: Function 'UTI_FloatNetworkToHost' argument 1 names different: declaration 'x' definition 'f'. chrony-4.7/util.c:972:30: note: Function 'UTI_FloatNetworkToHost' argument 1 names different: declaration 'x' definition 'f'. chrony-4.7/util.c:57:37: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] chrony-4.7/util.c:561:30: style: Parameter 'subnet' can be declared as pointer to const [constParameterPointer] chrony-4.7/util.c:583:14: style: Variable 'stm' can be declared as pointer to const [constVariablePointer] chrony-4.7/util.c:828:30: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] chrony-4.7/util.c:1154:15: style: Variable 'slash' can be declared as pointer to const [constVariablePointer] diff: 2.17.0 chrony-4.7/clientlog.c:484:51: style: Condition '(int32_t)interval<0' is always false [knownConditionTrueFalse] chrony-4.7/clientlog.c:482:21: note: Assignment 'interval=now_ts-prev_hit', assigned value is greater than -1 chrony-4.7/clientlog.c:482:12: note: interval is assigned 'now_ts-prev_hit' here. chrony-4.7/clientlog.c:484:51: note: Condition '(int32_t)interval<0' is always false head chrony-4.7/nameserv_async.c:129:2: error: #error [preprocessorErrorDirective] head chrony-4.7/sys.c:72:2: error: #error Unknown system [preprocessorErrorDirective] head chrony-4.7/test/unit/ntp_ext.c:41:29: error: Uninitialized variable: packet [uninitvar] DONE