2026-05-04 10:41 ftp://ftp.de.debian.org/debian/pool/main/p/psqlodbc/psqlodbc_18.00.0001.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 244 244 elapsed-time: 2.9 2.6 head-timing-info: old-timing-info: head results: psqlodbc-REL-18_00_0001/psqlodbc.h:249:1: error: syntax error [syntaxError] psqlodbc-REL-18_00_0001/pgxalib.cpp:58:113: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:107:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_ENV [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:129:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_DBC [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:151:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_ODBC_VERSION [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:258:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:341:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:399:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:561:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:597:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:610:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:621:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:626:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XAER_RMERR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:692:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XAER_RMERR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:696:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XAER_RMERR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:739:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XAER_RMERR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:809:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:817:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:832:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/pgxalib.cpp:54:6: style:inconclusive: Technically the member function 'XAConnection::GetPos' can be const. [functionConst] psqlodbc-REL-18_00_0001/pgxalib.cpp:55:16: style:inconclusive: Technically the member function 'XAConnection::GetConnstr' can be const. [functionConst] psqlodbc-REL-18_00_0001/pgxalib.cpp:56:16: style:inconclusive: Technically the member function 'XAConnection::GetDsnstr' can be const. [functionConst] psqlodbc-REL-18_00_0001/pgxalib.cpp:57:7: style:inconclusive: Technically the member function 'XAConnection::GetImmediateConnection' can be const. [functionConst] psqlodbc-REL-18_00_0001/pgxalib.cpp:58:7: style:inconclusive: Technically the member function 'XAConnection::AuthenticationError' can be const. [functionConst] psqlodbc-REL-18_00_0001/pgxalib.cpp:47:2: style: Class 'XAConnection' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] psqlodbc-REL-18_00_0001/pgxalib.cpp:215:2: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] psqlodbc-REL-18_00_0001/pgxalib.cpp:444:34: warning: Either the condition 'sptr' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] psqlodbc-REL-18_00_0001/pgxalib.cpp:431:6: note: Assuming that condition 'sptr' is not redundant psqlodbc-REL-18_00_0001/pgxalib.cpp:444:34: note: Null pointer addition psqlodbc-REL-18_00_0001/pgxalib.cpp:176:4: style: C-style pointer casting [cstyleCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:430:9: style: C-style pointer casting [cstyleCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:443:36: style: C-style pointer casting [cstyleCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:444:39: style: C-style pointer casting [cstyleCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:157:4: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:166:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:167:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:187:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:188:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:443:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:444:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:648:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:649:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:661:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:716:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:717:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:728:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:764:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] psqlodbc-REL-18_00_0001/pgxalib.cpp:152:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/pgxalib.cpp:151:6: note: ret is assigned psqlodbc-REL-18_00_0001/pgxalib.cpp:152:6: note: ret is overwritten psqlodbc-REL-18_00_0001/pgxalib.cpp:468:8: style: The scope of the variable 'keyhasbr' can be reduced. [variableScope] psqlodbc-REL-18_00_0001/pgxalib.cpp:468:18: style: The scope of the variable 'valhasbr' can be reduced. [variableScope] psqlodbc-REL-18_00_0001/pgxalib.cpp:814:46: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'xa_complete' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] psqlodbc-REL-18_00_0001/pgxalib.cpp:823:3: note: You might need to cast the function pointer here psqlodbc-REL-18_00_0001/pgxalib.cpp:814:46: note: Parameter 'handle' can be declared as pointer to const psqlodbc-REL-18_00_0001/pgxalib.cpp:814:59: style: Parameter 'retval' can be declared as pointer to const. However it seems that 'xa_complete' is a callback function, if 'retval' is declared with const you might also need to cast function pointer(s). [constParameterCallback] psqlodbc-REL-18_00_0001/pgxalib.cpp:823:3: note: You might need to cast the function pointer here psqlodbc-REL-18_00_0001/pgxalib.cpp:814:59: note: Parameter 'retval' can be declared as pointer to const psqlodbc-REL-18_00_0001/pgxalib.cpp:215:30: error: Undefined behavior: Variable 'filename' is used as parameter and destination in sprintf(). [sprintfOverlappingData] psqlodbc-REL-18_00_0001/pgxalib.cpp:386:9: warning: Uninitialized variable: rtext [uninitvar] psqlodbc-REL-18_00_0001/pgxalib.cpp:807:18: note: Calling function 'XidToText', 2nd argument 'pgxid' value is psqlodbc-REL-18_00_0001/pgxalib.cpp:384:23: note: Assuming condition is false psqlodbc-REL-18_00_0001/pgxalib.cpp:386:9: note: Uninitialized variable: rtext psqlodbc-REL-18_00_0001/pgxalib.cpp:562:27: style: Variable 'bActivateConnection' is assigned a value that is never used. [unreadVariable] psqlodbc-REL-18_00_0001/secure_sscanf.c:142:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VALF [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/secure_sscanf.c:151:17: warning: Either the condition 'lRet>4294967295' is redundant or the array 'trimCurr[16384]' is accessed at index 4294967295, which is out of bounds. [arrayIndexOutOfBoundsCond] psqlodbc-REL-18_00_0001/secure_sscanf.c:142:83: note: Assuming that condition 'lRet>4294967295' is not redundant psqlodbc-REL-18_00_0001/secure_sscanf.c:147:14: note: Assignment 'uWidth=lRet', assigned value is 4294967295 psqlodbc-REL-18_00_0001/secure_sscanf.c:151:17: note: Array index out of bounds psqlodbc-REL-18_00_0001/secure_sscanf.c:152:16: style: Redundant initialization for 'pParse'. The initialized value is overwritten before it is read. [redundantInitialization] psqlodbc-REL-18_00_0001/secure_sscanf.c:116:45: note: pParse is initialized psqlodbc-REL-18_00_0001/secure_sscanf.c:152:16: note: pParse is overwritten psqlodbc-REL-18_00_0001/secure_sscanf.c:154:9: style: Variable 'pParse' is assigned an expression that holds the same value. [redundantAssignment] psqlodbc-REL-18_00_0001/secure_sscanf.c:115:45: note: pCurrent is assigned 'pInputString' here. psqlodbc-REL-18_00_0001/secure_sscanf.c:142:74: note: Assuming condition is false psqlodbc-REL-18_00_0001/secure_sscanf.c:154:9: note: Variable 'pParse' is assigned an expression that holds the same value. psqlodbc-REL-18_00_0001/secure_sscanf.c:538:45: portability: 'pOutput' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] psqlodbc-REL-18_00_0001/secure_sscanf.c:587:27: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:60:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ODBC_INSTALL_COMPLETE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:80:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:116:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:132:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_FETCH_FIRST [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:185:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_FETCH_FIRST [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:247:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:269:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/RegisterRegdsn.c:50:2: warning:inconclusive: The buffer 'szDriver' may not be null-terminated after the call to strncpy(). [terminateStrncpy] psqlodbc-REL-18_00_0001/test/reset-db.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_DBC [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/reset-db.c:83:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/reset-db.c:103:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_ODBC_VERSION [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/runsuite.c:197:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/runsuite.c:358:102: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/runsuite.c:472:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/alter-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/arraybinding-test.c:12:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/async-enable-test.c:18:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bindcol-test.c:10:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bookmark-test.c:15:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS_WITH_INFO [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bookmark-test.c:38:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_CURSOR_TYPE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bookmark-test.c:137:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/boolsaschar-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bulkoperations-test.c:21:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_C_CHAR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bulkoperations-test.c:39:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/bulkoperations-test.c:150:12: style: Variable 'colvalue1' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/bulkoperations-test.c:126:12: note: colvalue1 is assigned psqlodbc-REL-18_00_0001/test/src/bulkoperations-test.c:150:12: note: colvalue1 is overwritten psqlodbc-REL-18_00_0001/test/src/catalogfunctions-test.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/colattribute-test.c:15:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/commands-test.c:10:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_INVALID_HANDLE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:89:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_ODBC_VERSION [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:119:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_DBC [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:248:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:267:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:314:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_DESC_LABEL [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:377:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:417:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_DBMS_VER [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/common.c:239:30: warning: If memory allocation fails, then there is a possible null pointer dereference: colids [nullPointerOutOfMemory] psqlodbc-REL-18_00_0001/test/src/common.c:271:33: note: Assuming allocation function fails psqlodbc-REL-18_00_0001/test/src/common.c:271:11: note: Assignment 'colids=(SQLSMALLINT*)malloc(numcols*sizeof(SQLSMALLINT))', assigned value is 0 psqlodbc-REL-18_00_0001/test/src/common.c:274:34: note: Calling function 'print_result_meta_series', 2nd argument 'colids' value is 0 psqlodbc-REL-18_00_0001/test/src/common.c:239:30: note: Null pointer dereference psqlodbc-REL-18_00_0001/test/src/common.c:273:3: warning: If memory allocation fails, then there is a possible null pointer dereference: colids [nullPointerOutOfMemory] psqlodbc-REL-18_00_0001/test/src/common.c:271:33: note: Assuming allocation function fails psqlodbc-REL-18_00_0001/test/src/common.c:271:11: note: Assignment 'colids=(SQLSMALLINT*)malloc(numcols*sizeof(SQLSMALLINT))', assigned value is 0 psqlodbc-REL-18_00_0001/test/src/common.c:273:3: note: Null pointer dereference psqlodbc-REL-18_00_0001/test/src/common.c:383:3: warning: If memory allocation fails, then there is a possible null pointer dereference: colids [nullPointerOutOfMemory] psqlodbc-REL-18_00_0001/test/src/common.c:381:33: note: Assuming allocation function fails psqlodbc-REL-18_00_0001/test/src/common.c:381:11: note: Assignment 'colids=(SQLSMALLINT*)malloc(numcols*sizeof(SQLSMALLINT))', assigned value is 0 psqlodbc-REL-18_00_0001/test/src/common.c:383:3: note: Null pointer dereference psqlodbc-REL-18_00_0001/test/src/common.c:40:8: style: Local variable 'env' shadows outer variable [shadowVariable] psqlodbc-REL-18_00_0001/test/src/common.h:24:16: note: Shadowed declaration psqlodbc-REL-18_00_0001/test/src/common.c:40:8: note: Shadow variable psqlodbc-REL-18_00_0001/test/src/common.c:7:18: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/common.c:53:24: style: Parameter 'extraparams' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/common.c:60:8: style: Variable 'envvar' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/connect-test.c:17:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_ODBC_VERSION [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/connect-test.c:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cte-test.c:16:149: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cte-test.c:56:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:22:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_FETCH_FIRST [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:52:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:27:7: style: Condition 'use_first_last' is always false [knownConditionTrueFalse] psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:20:24: note: Assignment 'use_first_last=0', assigned value is 0 psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:27:7: note: Condition 'use_first_last' is always false psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:105:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:103:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:105:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:95:70: error: Uninitialized variable: rowsFetched [uninitvar] psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:57:11: style: Variable 'rowsFetched' is not assigned a value. [unassignedVariable] psqlodbc-REL-18_00_0001/test/src/cursor-commit-test.c:18:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-commit-test.c:28:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/cursor-commit-test.c:26:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/cursor-commit-test.c:28:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/cursor-movement-test.c:15:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS_WITH_INFO [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-movement-test.c:35:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_CURSOR_TYPE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-movement-test.c:173:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-name-test.c:10:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursor-scrollable-test.c:18:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursors-test.c:13:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_AUTOCOMMIT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cursors-test.c:130:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/cvtnulldate-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/dataatexecution-test.c:10:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/dataatexecution-test.c:49:9: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] psqlodbc-REL-18_00_0001/test/src/dataatexecution-test.c:60:9: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] psqlodbc-REL-18_00_0001/test/src/dataatexecution-test.c:75:19: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] psqlodbc-REL-18_00_0001/test/src/dataatexecution-test.c:80:24: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] psqlodbc-REL-18_00_0001/test/src/dataatexecution-test.c:126:9: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] psqlodbc-REL-18_00_0001/test/src/declare-fetch-block-test.c:17:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/declare-fetch-block-test.c:58:70: error: Uninitialized variable: rowsFetched [uninitvar] psqlodbc-REL-18_00_0001/test/src/declare-fetch-commit-test.c:15:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:15:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_CURSOR_FORWARD_ONLY [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_MODE_READ_ONLY [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:52:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:138:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:135:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:138:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:342:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:336:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:342:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:213:8: style: Local variable 'buffer' shadows outer variable [shadowVariable] psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:57:7: note: Shadowed declaration psqlodbc-REL-18_00_0001/test/src/deprecated-test.c:213:8: note: Shadow variable psqlodbc-REL-18_00_0001/test/src/descrec-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:13:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:41:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:32:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:41:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:44:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:41:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/diagnostic-test.c:44:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:22:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:59:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_CLOSE [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:75:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:93:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:120:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:137:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:168:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_DBC [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:43:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:37:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/error-rollback-test.c:43:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/errors-test.c:22:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/errors-test.c:74:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/errors-test.c:70:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/errors-test.c:74:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/fetch-refcursors-test.c:11:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/fetch-refcursors-test.c:26:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/fetch-refcursors-test.c:64:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/fetch-refcursors-test.c:112:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_AUTOCOMMIT_ON [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/getresult-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/identity-test.c:26:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/identity-test.c:63:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_DBMS_VER [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/insertreturning-test.c:36:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/large-object-data-at-exec-test.c:37:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/large-object-data-at-exec-test.c:132:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/large-object-data-at-exec-test.c:11:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/large-object-data-at-exec-test.c:91:11: style: Variable 'error' is assigned a value that is never used. [unreadVariable] psqlodbc-REL-18_00_0001/test/src/large-object-test.c:20:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/large-object-test.c:8:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/lfconversion-test.c:16:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/multistmt-test.c:10:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/multistmt-test.c:27:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/notice-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/numeric-test.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/numeric-test.c:36:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NUMERIC_STRUCT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/numeric-test.c:82:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/numeric-test.c:118:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/numeric-test.c:144:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/numeric-test.c:107:40: style: Parameter 'numstr' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/odbc-conformance-test.c:28:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-conformance-test.c:43:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/odbc-conformance-test.c:30:6: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/odbc-conformance-test.c:43:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/odbc-conformance-test.c:46:6: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:17:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ATTR_IMP_PARAM_DESC [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:28:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:52:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:79:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:97:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:216:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:156:6: style: Condition 'variadic_test_success' is always true [knownConditionTrueFalse] psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:106:31: note: Assignment 'variadic_test_success=1', assigned value is 1 psqlodbc-REL-18_00_0001/test/src/odbc-escapes-test.c:156:6: note: Condition 'variadic_test_success' is always true psqlodbc-REL-18_00_0001/test/src/param-conversions-test.c:31:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/param-conversions-test.c:126:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/params-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/parse-test.c:14:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/parse-test.c:54:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/parse-test.c:53:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/parse-test.c:54:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/parse-test.c:57:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/parse-test.c:56:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/parse-test.c:57:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/positioned-update-test.c:17:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_C_CHAR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/positioned-update-test.c:33:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/positioned-update-test.c:98:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/positioned-update-test.c:75:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/positioned-update-test.c:98:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/positioned-update-test.c:75:65: error: Uninitialized variable: cursor_type [uninitvar] psqlodbc-REL-18_00_0001/test/src/premature-test.c:27:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/premature-test.c:82:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/prepare-test.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/prepare-test.c:31:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/prepare-test.c:29:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/prepare-test.c:31:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/quotes-test.c:18:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/quotes-test.c:47:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/quotes-test.c:90:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:290:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_MAX_NUMERIC_LEN [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:413:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLINTEGER [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:499:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:558:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:575:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:235:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:269:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:389:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:459:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:479:9: warning: If memory allocation fails, then there is a possible null pointer dereference: resultbuf [nullPointerOutOfMemory] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:477:21: note: Assuming allocation function fails psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:477:21: note: Assignment 'resultbuf=malloc(500)', assigned value is 0 psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:479:9: note: Null pointer dereference psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:124:22: style: Parameter 'wstr' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:146:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:228:18: style: Variable 'ds' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:232:18: style: Variable 'tim' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:247:18: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:261:23: style: Variable 'tss' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:266:18: style: Variable 'tim' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:286:25: style: Variable 'ns' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:296:14: style: Variable 'g' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:317:26: style: Variable 's' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/result-conversions-test.c:253:8: style: Variable 't' is assigned a value that is never used. [unreadVariable] psqlodbc-REL-18_00_0001/test/src/select-test.c:10:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/stmthandles-test.c:32:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_HANDLE_STMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/update-test.c:12:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-eucjp.c:15:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_C_CHAR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-eucjp.c:9:16: style: Variable 'lovedt2' can be declared as const array [constVariable] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-sjis.c:15:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_C_CHAR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-sjis.c:9:16: style: Variable 'lovedt2' can be declared as const array [constVariable] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:16:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_C_CHAR [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:65:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable conn [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:68:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:65:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:68:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:69:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:68:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:69:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:72:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:69:5: note: rc is assigned psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:72:5: note: rc is overwritten psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:9:16: style: Variable 'lovedt2' can be declared as const array [constVariable] psqlodbc-REL-18_00_0001/test/src/wchar-char-test.c:35:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test-utf8.c:67:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test.c:51:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NULL_HSTMT [valueFlowBailoutIncompleteVar] psqlodbc-REL-18_00_0001/test/src/wchar-char-test.c:27:17: style: Variable 'ucdt' can be declared as pointer to const [constVariablePointer] psqlodbc-REL-18_00_0001/test/src/wchar-char-test.c:106:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] psqlodbc-REL-18_00_0001/test/src/wchar-char-test.c:111:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] psqlodbc-REL-18_00_0001/test/src/wchar-char-test.c:116:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] diff: head psqlodbc-REL-18_00_0001/pgxalib.cpp:386:9: warning: Uninitialized variable: rtext [uninitvar] psqlodbc-REL-18_00_0001/pgxalib.cpp:807:18: note: Calling function 'XidToText', 2nd argument 'pgxid' value is psqlodbc-REL-18_00_0001/pgxalib.cpp:384:23: note: Assuming condition is false psqlodbc-REL-18_00_0001/pgxalib.cpp:386:9: note: Uninitialized variable: rtext 2.20.0 psqlodbc-REL-18_00_0001/test/src/cursor-block-delete-test.c:123:13: style: Variable 'cbLen[k]' is assigned a value that is never used. [unreadVariable] DONE