2025-11-21 06:31 ftp://ftp.de.debian.org/debian/pool/main/f/flashprog/flashprog_1.4.orig.tar.bz2 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 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 693 693 elapsed-time: 5.6 6.2 head-timing-info: old-timing-info: head results: flashprog-v1.4/Makefile.d/clock_gettime_test.c:7:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] flashprog-v1.4/82802ab.c:44:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_SHIFTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/amd_imc.c:185:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable programmer_may_write [valueFlowBailoutIncompleteVar] flashprog-v1.4/atahpt.c:64:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_4 [valueFlowBailoutIncompleteVar] flashprog-v1.4/amd_spi100.c:85:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/amd_spi100.c:124:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_OPCODE [valueFlowBailoutIncompleteVar] flashprog-v1.4/amd_spi100.c:233:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx32 [valueFlowBailoutIncompleteVar] flashprog-v1.4/amd_spi100.c:309:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FATAL [valueFlowBailoutIncompleteVar] flashprog-v1.4/atapromise.c:92:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ERASEFUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:83:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ERASEFUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/atapromise.c:118:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_4 [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:194:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ERASEFUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/atavia.c:114:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:229:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/atavia.c:131:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FATAL [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:239:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/atavia.c:167:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:271:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/atavia.c:187:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:331:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:349:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:369:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:389:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:409:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:425:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:483:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:503:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:521:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/at45db.c:540:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/bitbang_spi.c:134:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FLASHPROG_BUG [valueFlowBailoutIncompleteVar] flashprog-v1.4/buspirate_spi.c:41:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sp_fd [valueFlowBailoutIncompleteVar] flashprog-v1.4/bitbang_spi.c:324:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_FLASHPROG_BUG [valueFlowBailoutIncompleteVar] flashprog-v1.4/board_enable.c:2546:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_name [valueFlowBailoutIncompleteVar] flashprog-v1.4/buspirate_spi.c:71:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OOM [valueFlowBailoutIncompleteVar] flashprog-v1.4/board_enable.c:2706:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/buspirate_spi.c:85:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/board_enable.c:2746:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/buspirate_spi.c:307:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_OOM [valueFlowBailoutIncompleteVar] flashprog-v1.4/board_enable.c:2751:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P2 [valueFlowBailoutIncompleteVar] flashprog-v1.4/buspirate_spi.c:625:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/board_enable.c:2777:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P3 [valueFlowBailoutIncompleteVar] flashprog-v1.4/buspirate_spi.c:680:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/board_enable.c:2583:2: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flashprog-v1.4/board_enable.c:2584:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flashprog-v1.4/cbtable.c:227:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/cbtable.c:303:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LB_TAG_MAINBOARD [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch347_spi.c:345:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_SUCCESS [valueFlowBailoutIncompleteVar] flashprog-v1.4/cbtable.c:328:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch341a_spi.c:108:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_CANCELLED [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch341a_spi.c:125:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch341a_spi.c:131:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch341a_spi.c:168:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable length [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch341a_spi.c:374:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch341a_spi.c:428:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ch347_spi.c:183:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] flashprog-v1.4/chipset_enable.c:2264:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_name [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli.c:56:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cbtable.c:103:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/cbtable.c:273:23: style: Variable 'rec' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/cbtable.c:296:72: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/cbtable.c:337:22: style: Variable 'forward' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/cli_classic.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:31:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_classic.c:180:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KiB [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:58:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_config.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_classic.c:253:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:81:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_config.c:141:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTION_CONFIG_GET [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_output.c:39:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:101:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_output.c:53:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_output.c:64:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_MSG_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:198:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_output.c:71:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_PROGRESS_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:220:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_output.c:102:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flashprog_progress_stage [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:235:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_output.c:122:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:257:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_OTP [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_common.c:218:48: style: Parameter 'argv' can be declared as const array [constParameter] flashprog-v1.4/cli_output.c:100:101: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/custom_baud.c:24:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/custom_baud.c:22:94: style: Parameter 'tio_wanted' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/cli_wp.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/custom_baud_darwin.c:31:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable baud [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_wp.c:54:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] flashprog-v1.4/custom_baud_darwin.c:53:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B19200 [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_wp.c:126:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_wp.c:160:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_wp.c:187:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_wp.c:275:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTION_WP_STATUS [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_config.c:58:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] flashprog-v1.4/custom_baud_linux.c:36:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEFORE_FLAGS [valueFlowBailoutIncompleteVar] flashprog-v1.4/custom_baud_linux.c:52:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable baud [valueFlowBailoutIncompleteVar] flashprog-v1.4/developerbox_spi.c:149:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_id [valueFlowBailoutIncompleteVar] flashprog-v1.4/developerbox_spi.c:96:50: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'cp210x_bitbang_set_cs' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/developerbox_spi.c:123:14: note: You might need to cast the function pointer here flashprog-v1.4/developerbox_spi.c:96:50: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/developerbox_spi.c:101:51: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'cp210x_bitbang_set_sck' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/developerbox_spi.c:124:14: note: You might need to cast the function pointer here flashprog-v1.4/developerbox_spi.c:101:51: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/developerbox_spi.c:106:52: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'cp210x_bitbang_set_mosi' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/developerbox_spi.c:125:15: note: You might need to cast the function pointer here flashprog-v1.4/developerbox_spi.c:106:52: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/developerbox_spi.c:111:42: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'cp210x_bitbang_get_miso' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/developerbox_spi.c:126:15: note: You might need to cast the function pointer here flashprog-v1.4/developerbox_spi.c:111:42: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/developerbox_spi.c:116:70: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'cp210x_bitbang_set_sck_set_mosi' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/developerbox_spi.c:127:22: note: You might need to cast the function pointer here flashprog-v1.4/developerbox_spi.c:116:70: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/cli_wp.c:51:6: portability: %zi in format string (no. 1) requires 'ssize_t *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] flashprog-v1.4/cli_wp.c:51:6: portability: %zi in format string (no. 2) requires 'ssize_t *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] flashprog-v1.4/cli_wp.c:51:6: portability: %zn in format string (no. 3) requires 'size_t *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] flashprog-v1.4/digilent_spi.c:234:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/digilent_spi.c:286:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/digilent_spi.c:345:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] flashprog-v1.4/digilent_spi.c:383:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/cli_classic.c:371:15: style:inconclusive: Boolean expression 'read_it' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] flashprog-v1.4/cli_classic.c:371:26: style:inconclusive: Boolean expression 'verify_it' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] flashprog-v1.4/cli_classic.c:542:16: style:inconclusive: Boolean expression 'read_it' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] flashprog-v1.4/cli_classic.c:542:63: style:inconclusive: Boolean expression 'flash_size' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] flashprog-v1.4/cli_classic.c:453:28: style: Variable 'matched_master' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/dirtyjtag_spi.c:92:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dirtyjtag_spi.c:113:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dmi.c:365:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_laptop [valueFlowBailoutIncompleteVar] flashprog-v1.4/dirtyjtag_spi.c:185:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dmi.c:400:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_laptop [valueFlowBailoutIncompleteVar] flashprog-v1.4/dirtyjtag_spi.c:290:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:226:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_COMPLETED [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:256:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:264:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_OUT [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:388:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:424:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:446:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_4BA_EAR_ANY [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:479:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:532:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:581:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:728:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:862:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:1018:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:1050:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:1202:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_id [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:1257:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:1304:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_GENERIC_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dmi.c:48:16: style: struct member 'Anonymous0::type' is never used. [unusedStructMember] flashprog-v1.4/dmi.c:49:16: style: struct member 'Anonymous0::offset' is never used. [unusedStructMember] flashprog-v1.4/dmi.c:71:10: style: struct member 'Anonymous1::type' is never used. [unusedStructMember] flashprog-v1.4/drkaiser.c:61:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_2 [valueFlowBailoutIncompleteVar] flashprog-v1.4/en29lv640b.c:78:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDI_WRITE [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDI_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:81:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDI_NOT_READY [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:112:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDI_NOT_READY [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:138:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDI_DISABLE [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:154:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_EC_HWVERSION [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:179:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_XBI_EFCFG [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:197:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_XBI_EFCFG [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:215:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_XBI_EFCFG [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:227:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_XBI_EFA0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:252:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_EC_PXCFG [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:270:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_EC_PXCFG [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:289:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:335:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:413:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:477:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/edi.c:505:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENE_EC_HWVERSION [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:145:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:176:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_NONE [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:452:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:515:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:522:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:527:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:532:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:537:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:543:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:553:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:559:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:565:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:571:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:580:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:729:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_OPCODE [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:1158:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:102:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CHIP_RESTORE_FUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:121:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable status [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:160:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FATAL [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:182:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registered_master_count [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:222:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:335:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ERASEFUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:382:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_PROGRESS_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:402:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:504:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:542:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:583:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_NONSPI [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:627:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flashchips [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:747:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ERASEFUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:818:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:874:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_PROGRESS_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:937:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1011:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NUM_ERASEFUNCTIONS [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1202:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_NO_ERASE [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1400:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_PROGRESS_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1459:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable programmer_table_size [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1495:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable programmer_table_size [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1610:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BAD [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:1674:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PREPARE_FULL [valueFlowBailoutIncompleteVar] flashprog-v1.4/dediprog.c:248:43: style: Condition 'status->finished_idxqueued_idx' is always true [knownConditionTrueFalse] flashprog-v1.4/dediprog.c:238:27: note: Assuming that condition 'status->finished_idx>=status->queued_idx' is not redundant flashprog-v1.4/dediprog.c:248:43: note: Condition 'status->finished_idxqueued_idx' is always true flashprog-v1.4/dediprog.c:670:43: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] flashprog-v1.4/dediprog.c:779:43: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] flashprog-v1.4/fmap.c:47:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fmap_area [valueFlowBailoutIncompleteVar] flashprog-v1.4/fmap.c:52:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_SIGNATURE [valueFlowBailoutIncompleteVar] flashprog-v1.4/fmap.c:100:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fmap [valueFlowBailoutIncompleteVar] flashprog-v1.4/fmap.c:193:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_SIGNATURE [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft2232_spi.c:130:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_name [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft2232_spi.c:140:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_name [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft2232_spi.c:184:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SET_BITS_LOW [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft2232_spi.c:233:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft2232_spi.c:312:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTERFACE_A [valueFlowBailoutIncompleteVar] flashprog-v1.4/dummyflasher.c:897:7: style: The if condition is the same as the previous if condition [duplicateCondition] flashprog-v1.4/dummyflasher.c:891:7: note: First condition flashprog-v1.4/dummyflasher.c:897:7: note: Second condition flashprog-v1.4/dummyflasher.c:177:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: bustext [nullPointerOutOfMemory] flashprog-v1.4/dummyflasher.c:172:19: note: Assuming allocation function fails flashprog-v1.4/dummyflasher.c:172:19: note: Assignment 'bustext=strdup("parallel+lpc+fwh+spi")', assigned value is 0 flashprog-v1.4/dummyflasher.c:177:13: note: Null pointer dereference flashprog-v1.4/ft4222_spi.c:143:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:156:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_PROGRAMMER_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:177:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_PROGRAMMER_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:195:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_REQUEST_TYPE_VENDOR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:233:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_PROGRAMMER_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:271:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_PROGRAMMER_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:289:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_COMPLETED [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:312:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_SHORT_NOT_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:344:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_COMPLETED [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:426:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_GENERIC_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:471:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_SUCCESS [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:558:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_FLASHPROG_BUG [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:615:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:665:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_GENERIC_ERROR [valueFlowBailoutIncompleteVar] flashprog-v1.4/flashprog.c:601:2: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] flashprog-v1.4/flashprog.c:605:33: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/flashprog.c:994:55: style: Parameter 'flashctx' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/flashprog.c:1406:50: portability: 'curcontents' is of type 'void * const'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/flashprog.c:1408:61: portability: 'curcontents' is of type 'void * const'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/gfxnvidia.c:83:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ft4222_spi.c:285:65: style: Parameter 'transfer' can be declared as pointer to const. However it seems that 'ft4222_async_write_callback' is a callback function, if 'transfer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/ft4222_spi.c:311:18: note: You might need to cast the function pointer here flashprog-v1.4/ft4222_spi.c:285:65: note: Parameter 'transfer' can be declared as pointer to const flashprog-v1.4/helpers_fileio.c:41:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] flashprog-v1.4/helpers_fileio.c:88:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_x86_io.c:161:0: error: #error Unsupported or misconfigured platform. [preprocessorErrorDirective] flashprog-v1.4/hwaccess_physmap.c:178:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:197:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:229:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:248:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:264:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:321:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:335:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/hwaccess_physmap.c:185:2: error: Memory leak: virt_addr [memleak] flashprog-v1.4/hwaccess_physmap.c:204:2: error: Memory leak: virt_addr [memleak] flashprog-v1.4/hwaccess_physmap.c:207:43: style: Parameter 'virt_addr' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/hwaccess_physmap.c:315:19: portability: 'virt_addr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/hwaccess_physmap.c:504:6: style: struct member 'undo_mmio_write_data::reg' is never used. [unusedStructMember] flashprog-v1.4/ich_descriptors.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_PCH100 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:109:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_PCH100 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:115:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VSCC_BES [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:143:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH8 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:192:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_HAS_NEW_COMPONENT_DENSITY [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:211:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH_UNKNOWN [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:377:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_PCH100 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:458:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:476:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:535:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:1011:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JID [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:1037:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH8 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:1130:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICH_RET_PARAM [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:1223:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH_UNKNOWN [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:1350:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH_UNKNOWN [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:402:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_PCH100 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:418:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_PCH100 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:508:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:524:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:541:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:561:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:625:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:673:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_ICH9 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:1022:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH_UNKNOWN [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:1058:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:1285:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:1456:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable writearr [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:1720:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_ENGINE_PCH100 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:1975:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/ich_descriptors.c:492:27: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] flashprog-v1.4/internal.c:189:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shutdown_free [valueFlowBailoutIncompleteVar] flashprog-v1.4/it8212.c:51:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_ROM_ADDRESS [valueFlowBailoutIncompleteVar] flashprog-v1.4/it87spi.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUPERIO_VENDOR_ITE [valueFlowBailoutIncompleteVar] flashprog-v1.4/it87spi.c:138:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/it87spi.c:245:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable superio_count [valueFlowBailoutIncompleteVar] flashprog-v1.4/it87spi.c:289:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/it87spi.c:368:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ichspi.c:519:33: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/ichspi.c:536:32: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/ichspi.c:1314:51: style: Parameter 'flash' can be declared as pointer to const. However it seems that 'ich_hwseq_block_erase' is a callback function, if 'flash' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/ichspi.c:1697:12: note: You might need to cast the function pointer here flashprog-v1.4/ichspi.c:1314:51: note: Parameter 'flash' can be declared as pointer to const flashprog-v1.4/ichspi.c:275:31: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:280:31: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:285:31: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:629:25: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:630:25: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:631:25: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:632:25: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:632:49: portability: 'ich_spibar+swseq_data.reg_opmenu' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:634:32: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:635:33: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:636:36: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:637:36: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:637:60: portability: 'ich_spibar+swseq_data.reg_opmenu' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:675:38: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:682:39: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:683:38: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:731:4: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:735:3: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:800:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:812:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:862:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:881:3: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:918:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:930:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:984:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1006:3: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1186:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1235:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1348:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1356:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1377:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1392:3: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1418:2: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1434:3: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1540:40: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1590:38: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1613:26: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1613:36: portability: 'ich_spibar+reg_pr0' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1653:62: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1654:62: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1655:58: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1657:38: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1659:63: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1660:64: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1661:60: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1662:62: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1667:27: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1773:31: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1789:32: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1794:30: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1798:31: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1804:31: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1816:35: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1817:35: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1854:30: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1859:38: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1865:48: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1867:49: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1869:49: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1871:53: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1871:77: portability: 'ich_spibar+swseq_data.reg_opmenu' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1877:40: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1883:32: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1888:32: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1893:32: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1900:32: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1984:62: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1985:62: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1986:58: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1991:27: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1993:27: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1993:34: portability: 'ich_spibar+offs' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1995:38: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1997:63: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1998:64: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1999:60: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:2000:62: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:2005:27: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:2008:26: portability: 'ich_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/ichspi.c:1618:38: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] flashprog-v1.4/ichspi.c:1622:13: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] flashprog-v1.4/jedec.c:55:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:90:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:95:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_MASK [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:115:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_SHIFTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:146:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:172:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_SHIFTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:288:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_SHIFTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:320:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_SHIFTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:351:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_ADDR_SHIFTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:427:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:469:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:525:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:585:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:618:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:631:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eraseblocks [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:639:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eraseblocks [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:653:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:716:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:734:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eraseblocks [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:742:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eraseblocks [valueFlowBailoutIncompleteVar] flashprog-v1.4/jlink_spi.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JAYLINK_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/jlink_spi.c:91:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JAYLINK_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/jlink_spi.c:117:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/jlink_spi.c:182:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JAYLINK_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/jlink_spi.c:213:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/jedec.c:618:21: style: Variable 'blocks' can be declared as const array [constVariable] flashprog-v1.4/jedec.c:716:21: style: Variable 'blocks' can be declared as const array [constVariable] flashprog-v1.4/layout.c:293:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/layout.c:337:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:136:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable programmer_table_size [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:226:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chip_to_probe [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:573:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_ERR_OTHER [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:645:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_ERR_CHIP_UNSUPPORTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:662:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_ERR_CHIP_UNSUPPORTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:682:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_ERR_CHIP_UNSUPPORTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:711:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_ERR_OTHER [valueFlowBailoutIncompleteVar] flashprog-v1.4/libflashprog.c:366:99: style: Parameter 'flashctx' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/libflashprog.c:468:26: style: Parameter 'flashctx' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/libflashprog.c:508:26: style: Parameter 'flashctx' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/layout.c:84:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flashprog-v1.4/layout.c:85:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flashprog-v1.4/layout.c:74:9: style: Variable 'tstr1' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/layout.c:74:17: style: Variable 'tstr2' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/layout.c:351:68: style: Parameter 'layout' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/linux_gpio2_spi.c:62:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio_spi.c:109:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:74:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:82:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:93:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:106:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:119:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:132:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:148:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:200:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable names [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:96:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:132:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTD_WRITEABLE [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:181:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_NO_ERASE [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:194:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eraseblocks [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:229:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable eraseblocks [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:276:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_mtd.c:340:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_gpio2_spi.c:69:58: style: Parameter 'data' can be declared as pointer to const. However it seems that 'linux_gpio_spi_bitbang_set_cs' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/linux_gpio2_spi.c:163:14: note: You might need to cast the function pointer here flashprog-v1.4/linux_gpio2_spi.c:69:58: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/linux_gpio2_spi.c:77:59: style: Parameter 'data' can be declared as pointer to const. However it seems that 'linux_gpio_spi_bitbang_set_sck' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/linux_gpio2_spi.c:164:14: note: You might need to cast the function pointer here flashprog-v1.4/linux_gpio2_spi.c:77:59: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/linux_spi.c:77:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_spi.c:117:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_MODE_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_spi.c:215:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tx_buf [valueFlowBailoutIncompleteVar] flashprog-v1.4/linux_spi.c:171:29: style: Same value in both branches of ternary operator. [duplicateValueTernary] flashprog-v1.4/linux_mtd.c:178:25: style: Variable 'data' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/mcp6x_spi.c:145:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/memory_bus.c:33:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/memory_bus.c:44:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/memory_bus.c:50:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/memory_bus.c:80:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/memory_bus.c:95:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/mcp6x_spi.c:46:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:48:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:51:35: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:54:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:60:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:67:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:74:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:81:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:86:42: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mcp6x_spi.c:148:35: portability: 'mcp6x_spibar' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] flashprog-v1.4/mstarddc_spi.c:52:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/mstarddc_spi.c:103:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] flashprog-v1.4/mstarddc_spi.c:161:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/ni845x_spi.c:274:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kNi845x12Volts [valueFlowBailoutIncompleteVar] flashprog-v1.4/ni845x_spi.c:592:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uInt8 [valueFlowBailoutIncompleteVar] flashprog-v1.4/mstarddc_spi.c:129:10: style: Variable 'cmd' can be declared as const array [constVariable] flashprog-v1.4/nic3com.c:92:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/nic3com.c:72:35: style: Parameter 'data' can be declared as pointer to const. However it seems that 'nic3com_shutdown' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/nic3com.c:69:14: note: You might need to cast the function pointer here flashprog-v1.4/nic3com.c:72:35: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/nicintel.c:65:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_2 [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicintel_eeprom.c:111:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_OK_PREW [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicintel_eeprom.c:140:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_OK_PREW [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicintel_eeprom.c:337:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_SR_WIP [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicintel_eeprom.c:478:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/ni845x_spi.c:409:41: style: Comparing expression of type 'unsigned char' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] flashprog-v1.4/ni845x_spi.c:358:10: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] flashprog-v1.4/ni845x_spi.c:409:14: error: Dereferencing 'CS_str' after it is deallocated / released [deallocuse] flashprog-v1.4/ni845x_spi.c:409:39: style: Checking if unsigned expression 'CS_number' is less than zero. [unsignedLessThanZero] flashprog-v1.4/ni845x_spi.c:401:8: style: Variable 'ignore_io_voltage_limits_str' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/ni845x_spi.c:484:12: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] flashprog-v1.4/nicintel_spi.c:273:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicnatsemi.c:58:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicrealtek.c:65:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/nicrealtek.c:52:38: style: Parameter 'data' can be declared as pointer to const. However it seems that 'nicrealtek_shutdown' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/nicrealtek.c:49:14: note: You might need to cast the function pointer here flashprog-v1.4/nicrealtek.c:52:38: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/ogp_spi.c:125:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/opaque.c:63:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/parallel.c:83:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:42:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_HEADER_TYPE [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:156:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_FILL_IDENT [valueFlowBailoutIncompleteVar] flashprog-v1.4/pickit2_spi.c:451:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_id [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:174:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_SUBSYSTEM_VENDOR_ID [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:204:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_CLASS_DEVICE [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:217:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:229:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:271:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_FILL_IDENT [valueFlowBailoutIncompleteVar] flashprog-v1.4/pcidev.c:337:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/print.c:97:0: error: #error Endianness could not be determined [preprocessorErrorDirective] flashprog-v1.4/pony_spi.c:65:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIN_TXD [valueFlowBailoutIncompleteVar] flashprog-v1.4/pony_spi.c:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIN_RTS [valueFlowBailoutIncompleteVar] flashprog-v1.4/pony_spi.c:81:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIN_DTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/pony_spi.c:86:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIN_CTS [valueFlowBailoutIncompleteVar] flashprog-v1.4/pony_spi.c:126:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sp_fd [valueFlowBailoutIncompleteVar] flashprog-v1.4/print_wiki.c:290:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flashchips [valueFlowBailoutIncompleteVar] flashprog-v1.4/print_wiki.c:353:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_id [valueFlowBailoutIncompleteVar] flashprog-v1.4/print_wiki.c:368:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_id [valueFlowBailoutIncompleteVar] flashprog-v1.4/print_wiki.c:383:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable programmer_table_size [valueFlowBailoutIncompleteVar] flashprog-v1.4/print_wiki.c:445:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flashprog_version [valueFlowBailoutIncompleteVar] flashprog-v1.4/pickit2_spi.c:168:12: style: struct member 'pickit2_spispeeds::speed' is never used. [unusedStructMember] flashprog-v1.4/programmer.c:94:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_FLASHPROG_LIMIT [valueFlowBailoutIncompleteVar] flashprog-v1.4/programmer.c:105:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_NONE [valueFlowBailoutIncompleteVar] flashprog-v1.4/satamv.c:83:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/programmer.c:28:27: style: Parameter 'virt_addr' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/satasii.c:74:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_BASE_ADDRESS_0 [valueFlowBailoutIncompleteVar] flashprog-v1.4/satasii.c:111:24: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] flashprog-v1.4/rayer_spi.c:129:49: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'rayer_bitbang_set_cs' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:160:13: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:129:49: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/rayer_spi.c:136:50: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'rayer_bitbang_set_sck' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:161:13: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:136:50: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/rayer_spi.c:143:51: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'rayer_bitbang_set_mosi' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:162:14: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:143:51: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/rayer_spi.c:150:41: style: Parameter 'spi_data' can be declared as pointer to const. However it seems that 'rayer_bitbang_get_miso' is a callback function, if 'spi_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:163:14: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:150:41: note: Parameter 'spi_data' can be declared as pointer to const flashprog-v1.4/rayer_spi.c:246:39: style: Parameter 'data' can be declared as pointer to const. However it seems that 'byteblaster_shutdown' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:83:14: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:246:39: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/rayer_spi.c:260:34: style: Parameter 'data' can be declared as pointer to const. However it seems that 'stk200_shutdown' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:95:14: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:260:34: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/rayer_spi.c:275:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'dlc5_shutdown' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/rayer_spi.c:71:14: note: You might need to cast the function pointer here flashprog-v1.4/rayer_spi.c:275:32: note: Parameter 'data' can be declared as pointer to const flashprog-v1.4/sb600spi.c:92:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_REVISION_ID [valueFlowBailoutIncompleteVar] flashprog-v1.4/sb600spi.c:158:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx16 [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:122:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable baud [valueFlowBailoutIncompleteVar] flashprog-v1.4/sb600spi.c:199:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:153:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/sb600spi.c:229:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SER_INV_FD [valueFlowBailoutIncompleteVar] flashprog-v1.4/sb600spi.c:315:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:296:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] flashprog-v1.4/sb600spi.c:505:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:340:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIN_TXD [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:367:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIN_CTS [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:381:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCIFLUSH [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:491:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] flashprog-v1.4/serial.c:575:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:120:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:237:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:277:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:424:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sp_fd [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:860:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:883:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:928:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:936:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:974:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:999:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:1035:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIxPTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/print_wiki.c:443:51: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] flashprog-v1.4/print_wiki.c:398:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] flashprog-v1.4/print_wiki.c:410:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] flashprog-v1.4/serial.c:265:29: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/serial.c:386:31: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/serial.c:401:14: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] flashprog-v1.4/serial.c:439:14: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] flashprog-v1.4/spi.c:34:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:53:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_mode [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:71:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:84:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:95:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_DATA_UNSPECIFIED [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:114:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MiB [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:138:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MiB [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:175:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi.c:244:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/sfdp.c:28:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_SFDP_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/sfdp.c:90:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/sfdp.c:166:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_WRSR_WREN [valueFlowBailoutIncompleteVar] flashprog-v1.4/sb600spi.c:473:44: style: Condition 'amd_gen<=CHIPSET_HUDSON234' is always true [knownConditionTrueFalse] flashprog-v1.4/sb600spi.c:430:14: note: Assuming that condition 'amd_gen>=CHIPSET_BOLTON' is not redundant flashprog-v1.4/sb600spi.c:473:44: note: Condition 'amd_gen<=CHIPSET_HUDSON234' is always true flashprog-v1.4/spi25_prepare.c:27:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_EXIT_4_BYTE_ADDR_MODE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:60:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_4BA_NATIVE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:85:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_QPI_35_F5 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:96:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_QPI_35_F5 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:107:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINGLE_IO_1_1_1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:117:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_REG [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:157:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_SET_READ_PARAMS [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:167:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_SET_READ_PARAMS [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:185:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_FAST_READ_QPI4B [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:216:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable native_4ba [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:253:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PREPARE_FULL [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_prepare.c:292:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRSR_VOLATILE_BITS [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:33:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_RDID_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:49:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_REMS_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:61:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_RES_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:77:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_WREN_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:91:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_WRDI_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI_INVALID_LENGTH [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:159:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_REMS_INSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:206:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_REMS_INSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:238:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:258:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:269:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT25F_RDID_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:293:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:315:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable io_mode [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:340:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_4BA_EAR_C5C8 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:382:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPI25_EEPROM [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:413:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_4BA_EAR_ANY [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:454:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_MAX_ADDR_LEN [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:584:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:594:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:605:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:668:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:674:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_4BA_WRITE [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:687:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FEATURE_4BA_READ [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:697:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_MAX_ADDR_LEN [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25.c:790:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_AAI_WORD_PROGRAM_CONT_OUTSIZE [valueFlowBailoutIncompleteVar] flashprog-v1.4/sfdp.c:125:61: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/sfdp.c:203:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] flashprog-v1.4/spi25_prepare.c:261:6: style: Condition 'ret' is always false [knownConditionTrueFalse] flashprog-v1.4/spi25_prepare.c:257:6: note: Assuming that condition 'ret' is not redundant flashprog-v1.4/spi25_prepare.c:261:6: note: Condition 'ret' is always false flashprog-v1.4/spi25_prepare.c:85:74: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] flashprog-v1.4/spi25_prepare.c:96:74: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] flashprog-v1.4/spi95.c:34:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ST_M95_RDID_OUTSIZE_MAX [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:123:12: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] flashprog-v1.4/serprog.c:125:13: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] flashprog-v1.4/sst28sf040.c:120:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/serprog.c:114:18: style: Variable 'hostPtr' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/serprog.c:326:72: style: Parameter 'parms' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:40:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_WRSR [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:73:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_WRSR [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:203:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JEDEC_RDSR [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:248:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:276:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:445:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:456:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:472:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:493:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:513:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:528:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:542:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:558:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:583:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:642:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:668:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:686:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:705:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:723:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:740:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:763:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:778:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:839:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:861:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:889:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:920:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:939:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:957:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATUS1 [valueFlowBailoutIncompleteVar] flashprog-v1.4/stlinkv3_spi.c:135:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_COMPLETED [valueFlowBailoutIncompleteVar] flashprog-v1.4/stlinkv3_spi.c:348:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_TRANSFER_COMPLETED [valueFlowBailoutIncompleteVar] flashprog-v1.4/stlinkv3_spi.c:470:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vendor_id [valueFlowBailoutIncompleteVar] flashprog-v1.4/spi25_statusreg.c:245:48: style: Parameter 'flash' can be declared as pointer to const. However it seems that 'spi_restore_status' is a callback function, if 'flash' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/spi25_statusreg.c:286:24: note: You might need to cast the function pointer here flashprog-v1.4/spi25_statusreg.c:245:48: note: Parameter 'flash' can be declared as pointer to const flashprog-v1.4/spi25_statusreg.c:442:60: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:453:69: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:469:63: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:490:63: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:510:63: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:525:63: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:539:62: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:555:65: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:639:61: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:665:60: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:683:64: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:702:64: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:719:64: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:737:64: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:760:64: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:775:65: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:836:63: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:858:59: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:886:66: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:917:60: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:927:65: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/spi25_statusreg.c:947:66: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/usbdev.c:61:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx16 [valueFlowBailoutIncompleteVar] flashprog-v1.4/udelay.c:138:21: style: Condition 'clock_check_res()' is always false [knownConditionTrueFalse] flashprog-v1.4/udelay.c:138:21: note: Calling function 'clock_check_res' returns 0 flashprog-v1.4/udelay.c:138:21: note: Condition 'clock_check_res()' is always false flashprog-v1.4/stlinkv3_spi.c:214:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] flashprog-v1.4/stlinkv3_spi.c:217:4: note: Found duplicate branches for 'if' and 'else'. flashprog-v1.4/stlinkv3_spi.c:214:9: note: Found duplicate branches for 'if' and 'else'. flashprog-v1.4/usbdev.c:93:15: style: Parameter 'serialno' can be declared as pointer to const. However it seems that 'filter_by_serial' is a callback function, if 'serialno' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/usbdev.c:114:50: note: You might need to cast the function pointer here flashprog-v1.4/usbdev.c:93:15: note: Parameter 'serialno' can be declared as pointer to const flashprog-v1.4/usbdev.c:117:98: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'filter_by_number' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/usbdev.c:142:50: note: You might need to cast the function pointer here flashprog-v1.4/usbdev.c:117:98: note: Parameter 'handle' can be declared as pointer to const flashprog-v1.4/w29ee011.c:29:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chip_to_probe [valueFlowBailoutIncompleteVar] flashprog-v1.4/util/ich_descriptors_tool/ich_descriptors_tool.c:71:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/wbsio_spi.c:90:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_PTR [valueFlowBailoutIncompleteVar] flashprog-v1.4/util/ich_descriptors_tool/ich_descriptors_tool.c:116:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flashprog-v1.4/wbsio_spi.c:128:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] flashprog-v1.4/util/ich_descriptors_tool/ich_descriptors_tool.c:165:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHIPSET_ICH_UNKNOWN [valueFlowBailoutIncompleteVar] flashprog-v1.4/w39.c:225:47: style: Parameter 'flash' can be declared as pointer to const [constParameterPointer] flashprog-v1.4/writeprotect_ranges.c:62:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KiB [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:30:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_REG [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:63:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RW [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:113:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_REG [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:130:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_REGISTERS [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:150:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_REGISTERS [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:205:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:260:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RW [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:321:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:385:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:419:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:429:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:460:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:480:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_OK [valueFlowBailoutIncompleteVar] flashprog-v1.4/writeprotect.c:511:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHPROG_WP_ERR_CHIP_UNSUPPORTED [valueFlowBailoutIncompleteVar] flashprog-v1.4/util/ich_descriptors_tool/ich_descriptors_tool.c:281:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] flashprog-v1.4/util/ich_descriptors_tool/ich_descriptors_tool.c:113:25: style: Parameter 'argv' can be declared as const array [constParameter] flashprog-v1.4/util/ich_descriptors_tool/ich_descriptors_tool.c:159:11: style: Variable 'pMAC' can be declared as pointer to const [constVariablePointer] flashprog-v1.4/writeprotect.c:229:10: style: The comparison 'ord == 0' is always true. [knownConditionTrueFalse] flashprog-v1.4/writeprotect.c:227:12: note: 'ord' is assigned value '0' here. flashprog-v1.4/writeprotect.c:229:10: note: The comparison 'ord == 0' is always true. flashprog-v1.4/writeprotect.c:347:19: style: Variable 'last_range' can be declared as pointer to const [constVariablePointer] diff: 2.18.0 flashprog-v1.4/hwaccess_x86_io.c:161:2: error: #error Unsupported or misconfigured platform. [preprocessorErrorDirective] head flashprog-v1.4/linux_gpio2_spi.c:69:58: style: Parameter 'data' can be declared as pointer to const. However it seems that 'linux_gpio_spi_bitbang_set_cs' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/linux_gpio2_spi.c:163:14: note: You might need to cast the function pointer here flashprog-v1.4/linux_gpio2_spi.c:69:58: note: Parameter 'data' can be declared as pointer to const head flashprog-v1.4/linux_gpio2_spi.c:77:59: style: Parameter 'data' can be declared as pointer to const. However it seems that 'linux_gpio_spi_bitbang_set_sck' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] flashprog-v1.4/linux_gpio2_spi.c:164:14: note: You might need to cast the function pointer here flashprog-v1.4/linux_gpio2_spi.c:77:59: note: Parameter 'data' can be declared as pointer to const 2.18.0 flashprog-v1.4/print.c:97:2: error: #error Endianness could not be determined [preprocessorErrorDirective] DONE