2025-05-09 14:21 ftp://ftp.de.debian.org/debian/pool/main/c/calibre/calibre_8.3.0+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --library=microsoft_atl --library=qt --library=icu --library=openssl --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: d655a3a (2025-05-09 12:19:47 +0200) count: 599 593 elapsed-time: 4.1 4.3 head-timing-info: old-timing-info: head results: calibre-8.3.0/bypy/linux/launcher.c:24:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/run-python.h:69:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_os_log [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/linux/util.c:27:5: error: Array 'interpreter_data.exe_path[4096]' accessed at index 16383, which is out of bounds. [arrayIndexOutOfBounds] calibre-8.3.0/bypy/linux/util.c:27:5: note: Assignment 'tsz=sizeof(interpreter_data.exe_path)-1', assigned value is 16383 calibre-8.3.0/bypy/linux/util.c:27:5: note: Array index out of bounds calibre-8.3.0/bypy/linux/launcher.c:21:107: style: Variable 'ldp' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/macos/launcher.c:15:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROC_PIDPATHINFO_MAXSIZE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/macos/placeholder.c:20:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROC_PIDPATHINFO_MAXSIZE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/macos/placeholder.c:33:15: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] calibre-8.3.0/bypy/macos/placeholder.c:28:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/macos/util.c:15:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/macos/util.c:34:19: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] calibre-8.3.0/bypy/macos/util.c:41:23: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] calibre-8.3.0/bypy/macos/util.c:51:2: warning: swprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] calibre-8.3.0/bypy/macos/util.c:52:5: warning: swprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] calibre-8.3.0/bypy/macos/util.c:54:2: warning: swprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] calibre-8.3.0/bypy/macos/util.c:55:2: warning: swprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] calibre-8.3.0/bypy/macos/util.c:56:2: warning: swprintf format string requires 1 parameter but 2 are given. [wrongPrintfScanfArgNum] calibre-8.3.0/bypy/macos/util.c:64:82: style:inconclusive: Function 'run' argument 4 names different: declaration 'is_gui' definition 'gui_app'. [funcArgNamesDifferent] calibre-8.3.0/bypy/macos/util.h:5:87: note: Function 'run' argument 4 names different: declaration 'is_gui' definition 'gui_app'. calibre-8.3.0/bypy/macos/util.c:64:82: note: Function 'run' argument 4 names different: declaration 'is_gui' definition 'gui_app'. calibre-8.3.0/bypy/windows/eject.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONERROR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:31:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCHAR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:44:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:62:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:79:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:94:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:109:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:138:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:161:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:186:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:212:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_SHARE_READ [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:245:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_DEVINTERFACE_DISK [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:328:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:351:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:401:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/eject.c:272:10: style: Variable 'bRet' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/file_dialogs.cpp:35:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SetProcessDpiAwarenessFunc [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:73:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:83:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:105:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:128:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:146:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:162:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:242:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:264:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:279:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/main.c:23:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONERROR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/main.c:40:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/main.c:64:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/main.c:51:13: style: Condition 'msg!=NULL' is always false [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/main.c:35:20: note: Assignment 'msg=NULL', assigned value is 0 calibre-8.3.0/bypy/windows/main.c:51:13: note: Condition 'msg!=NULL' is always false calibre-8.3.0/bypy/windows/main.c:34:37: style: Parameter 'preamble' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/bypy/windows/main.c:66:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/main.c:66:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/portable-installer.cpp:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONERROR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:35:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCHAR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:53:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCHAR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:70:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:132:109: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:183:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNCOMPRESSED_SIZE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:204:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELZMA_lzip [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:219:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:271:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:283:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:287:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:320:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:337:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:383:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:407:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOVEFILE_REPLACE_EXISTING [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:452:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:526:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable-installer.cpp:99:6: warning: Either the condition 'sz==0' is redundant or there is possible null pointer dereference: sz. [nullPointerRedundantCheck] calibre-8.3.0/bypy/windows/portable-installer.cpp:100:12: note: Assuming that condition 'sz==0' is not redundant calibre-8.3.0/bypy/windows/portable-installer.cpp:99:6: note: Null pointer dereference calibre-8.3.0/bypy/windows/portable-installer.cpp:153:31: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/portable-installer.cpp:158:21: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/portable-installer.cpp:173:31: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/portable-installer.cpp:198:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/portable-installer.cpp:203:50: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/portable-installer.cpp:204:13: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/portable-installer.cpp:524:38: style: Variable 'argv' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/file_dialogs.cpp:340:16: style: Condition 'secret==NULL' is always false [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/file_dialogs.cpp:299:20: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] calibre-8.3.0/bypy/windows/portable.cpp:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONERROR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable.cpp:36:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCHAR [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable.cpp:64:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable.cpp:84:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _MAX_DRIVE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/portable.cpp:187:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CREATE_UNICODE_ENVIRONMENT [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/file_dialogs.cpp:106:11: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:127:25: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:129:11: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:134:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:134:50: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:136:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:136:50: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:179:33: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:214:9: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:263:26: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:285:13: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:297:53: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:298:58: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:303:41: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:307:40: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:309:38: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:311:39: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:313:41: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:315:42: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:329:50: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:331:37: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/file_dialogs.cpp:272:12: style: The scope of the variable 'key_size' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/file_dialogs.cpp:82:23: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/file_dialogs.cpp:344:15: style: Variable 'echo_buf' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/file_dialogs.cpp:272:21: style: Variable 'key_size' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/file_dialogs.cpp:275:24: style: Variable 'len' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/file_dialogs.cpp:275:20: style: Variable 'len' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/portable.cpp:238:12: performance: Passing the result of c_str() to a function that takes std::wstring as argument no. 2 is slow and redundant. [stlcstrParam] calibre-8.3.0/bypy/windows/util.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/util.c:46:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/util.c:94:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/util.c:102:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEM_FAILCRITICALERRORS [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/db/sqlite_extension.cpp:561:27: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/devices/libusb/libusb.c:153:24: error: syntax error [syntaxError] calibre-8.3.0/bypy/windows/XUnzip.cpp:2110:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Exop [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:2756:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:2790:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:2809:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_BEGIN [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:3390:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:3877:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:3915:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:4029:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:4087:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ATTRIBUTE_DIRECTORY [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/unix/libmtp.c:906:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/cpp_binding.h:64:27: debug: Failed to instantiate template "generic_raii". The checking continues anyway. [templateInstantiation] calibre-8.3.0/src/calibre/utils/cpp_binding.h:29:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] calibre-8.3.0/src/calibre/utils/cpp_binding.h:91:1: debug: SymbolDatabase couldn't resolve all user defined types. [debug] calibre-8.3.0/src/calibre/devices/mtp/windows/global.h:32:9: debug: SymbolDatabase couldn't resolve all user defined types. [debug] calibre-8.3.0/src/calibre/utils/cpp_binding.h:83:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable handle [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/cpp_binding.h:84:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable handle [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/cpp_binding.h:104:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sz [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/cpp_binding.h:113:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sz [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/cpp_binding.h:133:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/cpp_binding.h:143:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/windows/common.h:47:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/windows/common.h:83:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPC_E_CHANGED_MODE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/windows/common.h:110:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/windows/common.h:116:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vt [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:22:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PM_REMOVE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:48:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_OBJECT_CONTENT_TYPE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:87:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_False [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:109:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VT_DATE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:122:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_NULL [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:133:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_OBJECT_PARENT_ID [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:162:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_OBJECT_ORIGINAL_FILE_NAME [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:173:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:211:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:244:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_OBJECT_ID [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:277:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:281:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:289:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:294:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:296:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:299:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:311:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:326:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:331:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:351:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nothrow [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:424:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:477:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VT_DATE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:540:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:603:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:670:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_OBJECT_SIZE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:739:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_CONTENT_TYPE_FOLDER [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:780:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VT_LPWSTR [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:815:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WPD_CONTENT_TYPE_GENERIC_FILE [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/device.cpp:56:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/device.cpp:66:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/device.cpp:86:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyTuple_Type [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/device.cpp:125:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyTuple_Type [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/devices/mtp/windows/device.cpp:149:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyTuple_Type [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/cpp_binding.h:38:29: performance: Variable 'handle' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/windows/common.h:73:13: performance: Variable 'hr' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/cpp_binding.h:50:5: style:inconclusive: Technically the member function 'generic_raii::ptr' can be const. [functionConst] calibre-8.3.0/src/calibre/utils/cpp_binding.h:83:70: debug: CheckClass::isMemberVar found used member variable 'handle' with varid 0 [varid0] calibre-8.3.0/src/calibre/utils/cpp_binding.h:84:60: debug: CheckClass::isMemberVar found used member variable 'handle' with varid 0 [varid0] calibre-8.3.0/src/calibre/utils/cpp_binding.h:113:10: performance:inconclusive: Technically the member function 'generic_raii_array::size' can be static (but you may consider moving to unnamed namespace). [functionStatic] calibre-8.3.0/src/calibre/utils/cpp_binding.h:114:5: style:inconclusive: Technically the member function 'generic_raii_array::operator[]' can be const. [functionConst] calibre-8.3.0/src/calibre/utils/cpp_binding.h:71:9: style: Class 'wchar_raii' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/utils/cpp_binding.h:72:9: style: Class 'wchar_raii' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/utils/windows/common.h:116:2: style: Struct 'prop_variant' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:257:22: style: Condition 'r' is always true [knownConditionTrueFalse] calibre-8.3.0/src/calibre/devices/mtp/windows/device.cpp:26:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/devices/mtp/windows/global.h:43:133: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/windows/common.h:20:129: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/windows/common.h:87:27: style: Variable 'pmsg' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:304:53: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:307:34: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:394:26: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/devices/mtp/windows/content_enumeration.cpp:781:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/devices/mtp/windows/device_enumeration.cpp:25:9: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/devices/mtp/windows/wpd.cpp:245:21: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/devices/usbobserver/usbobserver.c:479:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/ebooks/compression/palmdoc.c:221:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/ebooks/djvu/bzzdecoder.c:710:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/ebooks/uchardet.c:60:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/ebooks/html_entities.c:192:27: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:440:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PreferNoHinting [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:462:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QueuedConnection [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:621:121: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SmoothTransformation [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:689:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_RGB16 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:731:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TextWordWrap [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:776:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PreferNoHinting [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1047:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_RGB16 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1264:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PreferNoHinting [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1329:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Key_Left [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1483:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LeftButton [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.h:34:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InOutCubic [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.h:56:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Running [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.h:60:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Antialiasing [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:102:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transparent [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:145:88: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SH_DialogButtonLayout [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:163:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FieldsStayAtSizeHint [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:205:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HasMenu [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:295:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RoundedNorth [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:446:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoPen [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:420:21: warning: Member variable 'PictureFlowPrivate::singlePress' is not initialized in the constructor. [uninitMemberVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:420:21: warning: Member variable 'PictureFlowPrivate::pixelDistanceMoved' is not initialized in the constructor. [uninitMemberVar] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:423:3: warning: Class 'PictureFlowPrivate' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:423:3: warning: Class 'PictureFlowPrivate' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.h:103:3: style: Class 'PictureFlow' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:986:23: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:987:23: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:995:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:619:42: style: The scope of the variable 'left' can be reduced. [variableScope] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:619:52: style: The scope of the variable 'top' can be reduced. [variableScope] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:619:61: style: The scope of the variable 'ht' can be reduced. [variableScope] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:619:71: style: The scope of the variable 'bpp' can be reduced. [variableScope] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:620:12: style: The scope of the variable 'alpha' can be reduced. [variableScope] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1469:8: style: The scope of the variable 'accepted' can be reduced. [variableScope] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:420:53: style:inconclusive: Function 'PictureFlowPrivate' argument 1 names different: declaration 'widget' definition 'w'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:329:35: note: Function 'PictureFlowPrivate' argument 1 names different: declaration 'widget' definition 'w'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:420:53: note: Function 'PictureFlowPrivate' argument 1 names different: declaration 'widget' definition 'w'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:420:60: style:inconclusive: Function 'PictureFlowPrivate' argument 2 names different: declaration 'queueLength' definition 'queueLength_'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:329:47: note: Function 'PictureFlowPrivate' argument 2 names different: declaration 'queueLength' definition 'queueLength_'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:420:60: note: Function 'PictureFlowPrivate' argument 2 names different: declaration 'queueLength' definition 'queueLength_'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:900:88: style:inconclusive: Function 'renderSlide' argument 4 names different: declaration 'col' definition 'col2'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:412:77: note: Function 'renderSlide' argument 4 names different: declaration 'col' definition 'col2'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:900:88: note: Function 'renderSlide' argument 4 names different: declaration 'col' definition 'col2'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1043:37: style:inconclusive: Function 'recalc' argument 1 names different: declaration 'w' definition 'ww'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:411:19: note: Function 'recalc' argument 1 names different: declaration 'w' definition 'ww'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1043:37: note: Function 'recalc' argument 1 names different: declaration 'w' definition 'ww'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1043:45: style:inconclusive: Function 'recalc' argument 2 names different: declaration 'h' definition 'wh'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:411:26: note: Function 'recalc' argument 2 names different: declaration 'h' definition 'wh'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1043:45: note: Function 'recalc' argument 2 names different: declaration 'h' definition 'wh'. calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1178:12: style: Local variable 'ftick' shadows outer variable [shadowVariable] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1127:10: note: Shadowed declaration calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1178:12: note: Shadow variable calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1185:12: style: Local variable 'ftick' shadows outer variable [shadowVariable] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1127:10: note: Shadowed declaration calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1185:12: note: Shadow variable calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:619:47: style: Variable 'left' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:619:56: style: Variable 'top' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:620:18: style: Variable 'alpha' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:826:13: style: Variable 'alpha' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/gui2/pictureflow/pictureflow.cpp:1423:12: style: Variable 'incr' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.h:24:2: style: Class 'SpinAnimator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.h:99:9: style: Class 'CalibreStyle' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.h:120:5: style: Class 'QProgressIndicator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/gui2/progress_indicator/CalibreStyle.cpp:472:11: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:21:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Preferred [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:76:136: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WindowText [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:83:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SH_ItemView_ActivateItemOnSingleClick [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:95:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Antialiasing [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:81:9: style: Class 'NoActivateStyle' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/gui2/tweak_book/diff/_patiencediff_c.c:1277:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/gui2/tweak_book/editor/syntax/html.c:529:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/headless/headless_integration.h:45:14: performance:inconclusive: Either there is a missing 'override', or the member function 'HeadlessIntegration::options' can be static. [functionStatic] calibre-8.3.0/src/calibre/headless/headless_backingstore.h:12:5: style: Class 'HeadlessBackingStore' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/headless/headless_integration.cpp:58:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32_Premultiplied [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/headless/headless_integration.cpp:46:7: style:inconclusive: Either there is a missing 'override', or the member function 'GenericUnixServices::openUrl' can be const. [functionConst] calibre-8.3.0/src/calibre/headless/headless_integration.cpp:47:7: style:inconclusive: Either there is a missing 'override', or the member function 'GenericUnixServices::openDocument' can be const. [functionConst] calibre-8.3.0/src/calibre/headless/main.cpp:16:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/library/sqlite_custom.c:287:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/srv/html_as_json.cpp:443:21: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/srv/fast_css_transform.cpp:1302:27: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/certgen.c:456:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/ffmpeg.c:599:28: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/fonts/freetype.cpp:317:21: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/fonts/winfonts.cpp:264:21: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/hyphenation/hyphen.c:107:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/icu_calibre_utils.h:27:0: error: #error Not implemented for python < 3.3 [preprocessorErrorDirective] calibre-8.3.0/src/calibre/utils/icu_calibre_utils.h:27:2: error: #error Not implemented for python < 3.3 [preprocessorErrorDirective] calibre-8.3.0/bypy/windows/XUnzip.cpp:3860:3: warning: Member variable 'TUnzip::cze' is not initialized in the constructor. [uninitMemberVar] calibre-8.3.0/src/calibre/utils/imageops/ordered_dither.cpp:92:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_Grayscale8 [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:3061:23: style: Condition 'unz_copyright[0]!=' '' is always false [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/XUnzip.cpp:3122:6: style: Condition 's' is always true [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/XUnzip.cpp:3547:29: style: Condition 'pfile_in_zip_read_info!=0' is always true [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/XUnzip.cpp:3802:35: style: Condition 'pfile_in_zip_read_info!=0' is always true [knownConditionTrueFalse] calibre-8.3.0/src/calibre/utils/imageops/ordered_dither.cpp:89:18: style: Variable 'x' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/ordered_dither.cpp:90:18: style: Variable 'gray' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/ordered_dither.cpp:90:32: style: Variable 'dithered' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/bypy/windows/XUnzip.cpp:3100:4: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] calibre-8.3.0/bypy/windows/XUnzip.cpp:3099:22: note: Assuming allocation function fails calibre-8.3.0/bypy/windows/XUnzip.cpp:3099:14: note: Assignment 's=(struct unz_s*)malloc(sizeof(struct unz_s))', assigned value is 0 calibre-8.3.0/bypy/windows/XUnzip.cpp:3100:4: note: Null pointer dereference calibre-8.3.0/bypy/windows/XUnzip.cpp:1223:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1255:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1310:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1377:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1400:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1405:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1406:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1475:20: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1485:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1518:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1547:9: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1586:13: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1588:22: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1611:9: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1665:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1666:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1667:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1972:14: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1975:14: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:1978:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2007:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2010:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2013:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2022:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2024:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2029:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2032:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2037:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2177:22: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2208:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2461:3: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2552:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2559:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2570:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2601:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2643:18: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2753:20: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2833:15: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3025:24: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3099:15: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3101:21: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3116:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3135:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3181:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3333:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3354:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3398:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3525:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3536:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3540:38: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3569:44: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3612:15: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3620:45: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3636:48: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3693:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3710:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3739:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3778:5: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3818:6: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3969:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3973:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:3977:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4107:24: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4117:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4120:17: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4121:14: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4127:21: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4243:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4261:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4295:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4313:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4348:27: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4361:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:4372:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/bypy/windows/XUnzip.cpp:2384:31: style: Same expression on both sides of '-'. [duplicateExpression] calibre-8.3.0/bypy/windows/XUnzip.cpp:2470:73: style: The comparison 'stream_size != sizeof(struct z_stream)' is always false because 'stream_size' and 'sizeof(struct z_stream)' represent the same value. [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/XUnzip.cpp:2469:63: note: 'stream_size' is assigned value 'sizeof(struct z_stream)' here. calibre-8.3.0/bypy/windows/XUnzip.cpp:2470:73: note: The comparison 'stream_size != sizeof(struct z_stream)' is always false because 'stream_size' and 'sizeof(struct z_stream)' represent the same value. calibre-8.3.0/bypy/windows/XUnzip.cpp:3445:9: style: The comparison 'err == 0' is always true. [knownConditionTrueFalse] calibre-8.3.0/bypy/windows/XUnzip.cpp:3435:10: note: 'err' is assigned value '0' here. calibre-8.3.0/bypy/windows/XUnzip.cpp:3445:9: note: The comparison 'err == 0' is always true. calibre-8.3.0/bypy/windows/XUnzip.cpp:1561:14: style: The scope of the variable 'i' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/XUnzip.cpp:1561:17: style: The scope of the variable 'j' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/XUnzip.cpp:1773:8: style: The scope of the variable 'a' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/XUnzip.cpp:2334:9: style: The scope of the variable 'k' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/XUnzip.cpp:3515:6: style: The scope of the variable 'err' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/XUnzip.cpp:3961:9: style: The scope of the variable 'size' can be reduced. [variableScope] calibre-8.3.0/bypy/windows/XUnzip.cpp:2443:28: style:inconclusive: Function 'inflateReset' argument 1 names different: declaration 'strm' definition 'z'. [funcArgNamesDifferent] calibre-8.3.0/bypy/windows/XUnzip.cpp:510:29: note: Function 'inflateReset' argument 1 names different: declaration 'strm' definition 'z'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2443:28: note: Function 'inflateReset' argument 1 names different: declaration 'strm' definition 'z'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2455:26: style:inconclusive: Function 'inflateEnd' argument 1 names different: declaration 'strm' definition 'z'. [funcArgNamesDifferent] calibre-8.3.0/bypy/windows/XUnzip.cpp:459:27: note: Function 'inflateEnd' argument 1 names different: declaration 'strm' definition 'z'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2455:26: note: Function 'inflateEnd' argument 1 names different: declaration 'strm' definition 'z'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2536:23: style:inconclusive: Function 'inflate' argument 1 names different: declaration 'strm' definition 'z'. [funcArgNamesDifferent] calibre-8.3.0/bypy/windows/XUnzip.cpp:390:24: note: Function 'inflate' argument 1 names different: declaration 'strm' definition 'z'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2536:23: note: Function 'inflate' argument 1 names different: declaration 'strm' definition 'z'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2536:30: style:inconclusive: Function 'inflate' argument 2 names different: declaration 'flush' definition 'f'. [funcArgNamesDifferent] calibre-8.3.0/bypy/windows/XUnzip.cpp:390:34: note: Function 'inflate' argument 2 names different: declaration 'flush' definition 'f'. calibre-8.3.0/bypy/windows/XUnzip.cpp:2536:30: note: Function 'inflate' argument 2 names different: declaration 'flush' definition 'f'. calibre-8.3.0/bypy/windows/XUnzip.cpp:4254:52: style:inconclusive: Function 'GetZipItemW' argument 3 names different: declaration 'ze' definition 'zew'. [funcArgNamesDifferent] calibre-8.3.0/bypy/windows/XUnzip.h:170:52: note: Function 'GetZipItemW' argument 3 names different: declaration 'ze' definition 'zew'. calibre-8.3.0/bypy/windows/XUnzip.cpp:4254:52: note: Function 'GetZipItemW' argument 3 names different: declaration 'ze' definition 'zew'. calibre-8.3.0/bypy/windows/XUnzip.cpp:4306:82: style:inconclusive: Function 'FindZipItemW' argument 5 names different: declaration 'ze' definition 'zew'. [funcArgNamesDifferent] calibre-8.3.0/bypy/windows/XUnzip.h:209:82: note: Function 'FindZipItemW' argument 5 names different: declaration 'ze' definition 'zew'. calibre-8.3.0/bypy/windows/XUnzip.cpp:4306:82: note: Function 'FindZipItemW' argument 5 names different: declaration 'ze' definition 'zew'. calibre-8.3.0/bypy/windows/XUnzip.cpp:1799:7: warning: Unused variable value 'p' [constStatement] calibre-8.3.0/bypy/windows/XUnzip.cpp:2594:20: warning: Unused variable value 'r' [constStatement] calibre-8.3.0/bypy/windows/XUnzip.cpp:1162:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/XUnzip.cpp:2097:9: style: Variable 'r' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/XUnzip.cpp:2796:22: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/bypy/windows/XUnzip.cpp:3132:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/XUnzip.cpp:3707:27: style: Variable 'pfile_in_zip_read_info' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/bypy/windows/XUnzip.cpp:4372:21: style: Variable 'han' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:363:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_Indexed8 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:99:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:138:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:171:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:467:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:572:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:599:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:652:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:773:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:875:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32_Premultiplied [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:892:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:913:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Format_ARGB32 [valueFlowBailoutIncompleteVar] calibre-8.3.0/bypy/windows/XUnzip.cpp:681:10: style: union member 'Anonymous0::pad' is never used. [unusedStructMember] calibre-8.3.0/bypy/windows/XUnzip.cpp:4033:7: style: Variable 'name' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:76:1: style: The class 'Node' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:108:10: style:inconclusive: Technically the member function 'Node::check_compiler' can be const. [functionConst] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:116:18: performance:inconclusive: Technically the member function 'Node::create_child' can be static (but you may consider moving to unnamed namespace). [functionStatic] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:164:18: performance:inconclusive: Technically the member function 'Node::find_best_reducible_node' can be static (but you may consider moving to unnamed namespace). [functionStatic] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:57:5: style: Class 'Pool < Node >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:165:35: style: The scope of the variable 'e' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:215:13: style: The scope of the variable 'i' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:216:15: style: The scope of the variable 'child' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:239:15: style: The scope of the variable 'child' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:280:10: style: The scope of the variable 'is_odd' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:145:27: style: Local variable 'index' shadows outer variable [shadowVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:80:19: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:145:27: note: Shadow variable calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:241:23: style: Local variable 'index' shadows outer variable [shadowVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:80:19: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:241:23: note: Shadow variable calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:257:110: style: Parameter 'error' can be declared as reference to const [constParameterReference] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:275:73: style: Parameter 'color_table' can be declared as reference to const [constParameterReference] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:49:59: style: Parameter 'other' can be declared as reference to const [constParameterReference] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:239:15: style: Variable 'child' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:165:37: style: Variable 'e' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:278:39: style: Variable 'index' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:279:64: style: Variable 'c' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:280:17: style: Variable 'is_odd' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:281:15: style: Variable 'start' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:281:26: style: Variable 'delta' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/quantize.cpp:345:64: style: Variable 'c' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/compressor.c:156:44: style: Parameter 'data' can be declared as pointer to const. However it seems that 'put_bytes' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] calibre-8.3.0/src/calibre/utils/lzx/compressor.c:216:24: note: You might need to cast the function pointer here calibre-8.3.0/src/calibre/utils/lzx/compressor.c:156:44: note: Parameter 'data' can be declared as pointer to const calibre-8.3.0/src/calibre/utils/lzx/compressor.c:236:16: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/lzc.c:61:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzc.c:60:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzc.c:60:26: note: Assignment 'lzi->block_buf=malloc(lzi->block_buf_size)', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzc.c:61:36: note: Null pointer addition calibre-8.3.0/src/calibre/utils/lzx/lzc.c:137:33: style: Parameter 'lzi' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/lzx/lzc.c:164:24: style: Variable 'bbe' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzc.c:287:24: style: Variable 'bbe' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzxd.c:141:7: error: There is an unknown macro here somewhere. Configuration is required. If D is a macro then please configure it. [unknownMacro] calibre-8.3.0/src/calibre/utils/lzx/lzxmodule.c:228:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/msdes/des.c:63:28: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:100:24: style: Variable 'raw0' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:122:17: style: Variable 'from' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:122:24: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:129:28: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:131:22: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:149:36: style: Parameter 'outof' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:163:36: style: Parameter 'outof' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/msdes/des.c:324:58: style: Parameter 'keys' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/msdes/msdesmodule.c:98:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:358:5: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:461:24: style: Condition 'last_kernel!=NULL' is always false [knownConditionTrueFalse] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:454:30: note: Assignment 'last_kernel=NULL', assigned value is 0 calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:461:24: note: Condition 'last_kernel!=NULL' is always false calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:194:16: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:198:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:657:12: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:9: style: The scope of the variable 'red_average' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:26: style: The scope of the variable 'green_average' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:45: style: The scope of the variable 'blue_average' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:63: style: The scope of the variable 'distance' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:95:31: style: The scope of the variable 'bottom_border' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:95:50: style: The scope of the variable 'left_border' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:95:67: style: The scope of the variable 'right_border' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:157:11: style: The scope of the variable 'dest' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:273:11: style: The scope of the variable 'normalize' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:328:11: style: The scope of the variable 'alpha' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:595:101: style: The scope of the variable 'c' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:595:142: style: The scope of the variable 's' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:648:19: style: The scope of the variable 'r' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:648:22: style: The scope of the variable 'g' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:648:25: style: The scope of the variable 'b' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:765:11: style: The scope of the variable 'dest' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:914:9: style: The scope of the variable 'x' can be reduced. [variableScope] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:439:36: style:inconclusive: Function 'gaussian_blur' argument 1 names different: declaration 'img' definition 'image'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/utils/imageops/imageops.h:17:36: note: Function 'gaussian_blur' argument 1 names different: declaration 'img' definition 'image'. calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:439:36: note: Function 'gaussian_blur' argument 1 names different: declaration 'img' definition 'image'. calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:159:34: style: Local variable 'normalize' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/imageops/imageops.h:20:8: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:159:34: note: Shadow variable calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:273:11: style: Local variable 'normalize' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/imageops/imageops.h:20:8: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:273:11: note: Shadow variable calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:310:11: style: Local variable 'normalize' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/imageops/imageops.h:20:8: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:310:11: note: Shadow variable calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:328:18: style: Local variable 'normalize' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/imageops/imageops.h:20:8: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:328:18: note: Shadow variable calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:454:16: style: Variable 'last_kernel' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:345:19: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:43:31: style: struct member 'ShortPixel::alpha' is never used. [unusedStructMember] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:50:30: style: struct member 'CharPixel::alpha' is never used. [unusedStructMember] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:61:24: style: Variable 'c' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:21: style: Variable 'red_average' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:40: style: Variable 'green_average' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:58: style: Variable 'blue_average' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:64:72: style: Variable 'distance' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:95:45: style: Variable 'bottom_border' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:95:62: style: Variable 'left_border' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:95:80: style: Variable 'right_border' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:136:21: style: Variable 'gray' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:914:11: style: Variable 'x' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/podofo/global.h:70:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OutOfMemory [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:55:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:77:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:95:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:103:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Write [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:175:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Flate [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:202:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:228:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:255:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:266:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:301:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:327:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:373:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyNull [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:466:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PDFDocType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:494:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:505:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:535:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Width [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:560:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyFilter [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:609:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:633:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:657:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:787:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:74:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Variant [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:109:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:126:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:212:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:279:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_KeyError [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:294:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyTuple_Type [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:370:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:342:17: performance: Variable 'dest_page_parent' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/podofo/global.h:49:10: style:inconclusive: Technically the member function 'pdf::PyObjectDeleter::operator()' can be const. [functionConst] calibre-8.3.0/src/calibre/utils/podofo/global.h:63:14: performance:inconclusive: Either there is a missing 'override', or the member function 'pdf::PyBytesOutputStream::Close' can be static. [functionStatic] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:129:14: performance:inconclusive: Either there is a missing 'override', or the member function 'BytesOutputDevice::Flush' can be static. [functionStatic] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:20:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:28:12: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:379:44: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:382:20: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:167:15: style: Variable 'objects' can be declared as reference to const [constVariableReference] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:388:54: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:153:12: error: Uninitialized variable: ans [uninitvar] calibre-8.3.0/src/calibre/utils/podofo/doc.cpp:140:15: style: Variable 'ans' is not assigned a value. [unassignedVariable] calibre-8.3.0/src/calibre/utils/podofo/fonts.cpp:101:66: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] calibre-8.3.0/src/calibre/utils/podofo/images.cpp:86:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/impose.cpp:39:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:990:15: style: Condition 'excess>15' is always false [knownConditionTrueFalse] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:980:17: note: Assuming that condition 'cur_run>=20' is not redundant calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:989:22: note: Assignment 'excess=cur_run-4', assigned value is less than 16 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:990:15: note: Condition 'excess>15' is always false calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:152:5: warning: If memory allocation fails, then there is a possible null pointer dereference: leaves [nullPointerOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assignment 'leaves=malloc(nelem*sizeof(struct h_elem))', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:152:5: note: Null pointer dereference calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:153:5: warning: If memory allocation fails, then there is a possible null pointer dereference: leaves [nullPointerOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assignment 'leaves=malloc(nelem*sizeof(struct h_elem))', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:153:5: note: Null pointer dereference calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:154:5: warning: If memory allocation fails, then there is a possible null pointer dereference: leaves [nullPointerOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assignment 'leaves=malloc(nelem*sizeof(struct h_elem))', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:154:5: note: Null pointer dereference calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:156:9: warning: If memory allocation fails, then there is a possible null pointer dereference: leaves [nullPointerOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assignment 'leaves=malloc(nelem*sizeof(struct h_elem))', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:156:9: note: Null pointer dereference calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:162:10: warning: If memory allocation fails, then there is a possible null pointer dereference: leaves [nullPointerOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:138:26: note: Assignment 'leaves=malloc(nelem*sizeof(struct h_elem))', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:162:10: note: Null pointer dereference calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:187:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cur_inode [nullPointerOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:167:20: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:167:20: note: Assignment 'inodes=malloc((nelem-1)*sizeof(struct ih_elem))', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:181:32: note: Assignment 'cur_inode=inodes', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:187:26: note: Null pointer dereference calibre-8.3.0/src/calibre/utils/podofo/outline.cpp:43:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/outline.cpp:56:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PDFOutlineItemType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:136:57: style: Parameter 'freq' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:500:35: style: Parameter 'lzi' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:504:18: style: Variable 'c1' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:504:23: style: Variable 'c2' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:872:13: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:873:13: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:882:15: style: Variable 'huffe' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:956:40: style: Parameter 'prevlengths' can be declared as pointer to const [constParameterPointer] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:966:18: style: Variable 'codee' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/calibre/utils/podofo/outline.cpp:17:28: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/outline.cpp:25:12: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/outline.cpp:56:11: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/outline.cpp:59:37: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:654:15: style: Variable 'match_pos' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:655:22: style: Variable 'formatted_offset' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:661:15: style: Variable 'match_pos' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:662:22: style: Variable 'formatted_offset' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:668:15: style: Variable 'match_pos' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/lzx/lzxc.c:669:22: style: Variable 'formatted_offset' is assigned a value that is never used. [unreadVariable] calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PDFOutlineItemType [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:92:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/podofo.cpp:47:21: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:97:6: warning: Identical condition '!ans', second condition is always false [identicalConditionAfterEarlyExit] calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:94:6: note: If condition '!ans' is true, the function will return/exit calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:97:6: note: Testing identical condition '!ans' calibre-8.3.0/src/calibre/utils/podofo/test.cpp:15:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:21:11: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/outlines.cpp:23:37: style: C-style pointer casting [cstyleCast] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:34:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Write [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:50:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvalidHandle [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:63:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvalidHandle [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:113:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_Exception [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:126:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_Exception [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:139:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_Exception [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:167:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_Exception [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/output.cpp:185:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable save_options [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/podofo/utils.cpp:33:40: style:inconclusive: Function 'podofo_convert_pystring' argument 1 names different: declaration 'py' definition 'val'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/utils/podofo/global.h:45:51: note: Function 'podofo_convert_pystring' argument 1 names different: declaration 'py' definition 'val'. calibre-8.3.0/src/calibre/utils/podofo/utils.cpp:33:40: note: Function 'podofo_convert_pystring' argument 1 names different: declaration 'py' definition 'val'. calibre-8.3.0/src/calibre/utils/podofo/output.cpp:33:9: style: Class 'MyOutputDevice' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/utils/speedup.c:865:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/spell/hunspell_wrapper.cpp:191:21: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/windows/wintoast.cpp:102:27: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/windows/wintoastlib.cpp:66:93: error: There is an unknown macro here somewhere. Configuration is required. If _Out_writes_ is a macro then please configure it. [unknownMacro] calibre-8.3.0/src/tinycss/tokenizer.c:468:24: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/windows/winutil.cpp:1641:27: error: syntax error [syntaxError] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:174:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:253:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:479:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyTerritory [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:737:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:916:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable digits10 [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:1025:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QT_VERSION_STR [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:1424:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Binary [valueFlowBailoutIncompleteVar] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:139:5: performance: Variable 'm_name' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:140:5: performance: Variable 'm_fileInfo' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:141:5: performance: Variable 'm_language' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:142:5: performance: Variable 'm_territory' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:54:5: style: Class 'RCCResourceLibrary' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:100:5: style: Class 'RCCFileInfo' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:66:17: performance: Function 'inputFiles()' should return member 'm_fileNames' by const reference. [returnByReference] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:78:13: performance: Function 'initName()' should return member 'm_initName' by const reference. [returnByReference] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:81:13: performance: Function 'outputName()' should return member 'm_outputName' by const reference. [returnByReference] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:103:13: performance: Function 'resourceRoot()' should return member 'm_resourceRoot' by const reference. [returnByReference] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:108:17: performance: Function 'failedResources()' should return member 'm_failedResources' by const reference. [returnByReference] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:511:44: style: Condition 'errorString.isEmpty()' is always true [knownConditionTrueFalse] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:887:9: style: Condition '!writeHeader()' is always false [knownConditionTrueFalse] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:887:21: note: Calling function 'writeHeader' returns 1 calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:887:9: note: Condition '!writeHeader()' is always false calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:905:9: style: Condition '!writeInitializer()' is always false [knownConditionTrueFalse] calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:905:26: note: Calling function 'writeInitializer' returns 1 calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:905:9: note: Condition '!writeInitializer()' is always false calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:436:20: style:inconclusive: Function 'interpretResourceFile' argument 2 names different: declaration 'file' definition 'fname'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:131:71: note: Function 'interpretResourceFile' argument 2 names different: declaration 'file' definition 'fname'. calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:436:20: note: Function 'interpretResourceFile' argument 2 names different: declaration 'file' definition 'fname'. calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:806:100: style:inconclusive: Function 'parseCompressionAlgorithm' argument 1 names different: declaration 'algo' definition 'value'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:91:71: note: Function 'parseCompressionAlgorithm' argument 1 names different: declaration 'algo' definition 'value'. calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:806:100: note: Function 'parseCompressionAlgorithm' argument 1 names different: declaration 'algo' definition 'value'. calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:929:42: style:inconclusive: Function 'writeHex' argument 1 names different: declaration 'number' definition 'tmp'. [funcArgNamesDifferent] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:141:26: note: Function 'writeHex' argument 1 names different: declaration 'number' definition 'tmp'. calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:929:42: note: Function 'writeHex' argument 1 names different: declaration 'number' definition 'tmp'. calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:451:9: style: Local variable 'compressLevel' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:97:9: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:451:9: note: Shadow variable calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:452:9: style: Local variable 'compressThreshold' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:100:9: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:452:9: note: Shadow variable calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:1293:20: style: Local variable 'initName' shadows outer function [shadowFunction] calibre-8.3.0/src/calibre/utils/rcc/rcc.h:78:13: note: Shadowed declaration calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:1293:20: note: Shadow variable calibre-8.3.0/src/calibre/utils/rcc/rcc.cpp:1212:26: style: Variable 'child' can be declared as pointer to const [constVariablePointer] calibre-8.3.0/src/unicode_names/unicode_names.c:94:24: error: syntax error [syntaxError] diff: head calibre-8.3.0/bypy/windows/file_dialogs.cpp:134:50: style: C-style pointer casting [cstyleCast] head calibre-8.3.0/bypy/windows/file_dialogs.cpp:136:50: style: C-style pointer casting [cstyleCast] head calibre-8.3.0/bypy/windows/file_dialogs.cpp:275:20: style: Variable 'len' is assigned a value that is never used. [unreadVariable] head calibre-8.3.0/bypy/windows/main.c:66:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] head calibre-8.3.0/src/calibre/utils/icu_calibre_utils.h:27:2: error: #error Not implemented for python < 3.3 [preprocessorErrorDirective] head calibre-8.3.0/src/calibre/utils/imageops/imageops.cpp:345:19: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] 2.17.0 calibre-8.3.0/src/calibre/utils/lzx/lzc.c:61:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzc.c:60:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzc.c:60:26: note: Assignment 'lzi->block_buf=malloc(lzi->block_buf_size)', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzc.c:61:36: note: Null pointer addition head calibre-8.3.0/src/calibre/utils/lzx/lzc.c:61:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] calibre-8.3.0/src/calibre/utils/lzx/lzc.c:60:26: note: Assuming allocation function fails calibre-8.3.0/src/calibre/utils/lzx/lzc.c:60:26: note: Assignment 'lzi->block_buf=malloc(lzi->block_buf_size)', assigned value is 0 calibre-8.3.0/src/calibre/utils/lzx/lzc.c:61:36: note: Null pointer addition DONE