iODBC
iODBC copied to clipboard
Missing parameter to SQLFreeConnect_Internal in connect.c
When building with LTO, gcc warns:
connect.c:493:18: warning: type of 'SQLFreeConnect_Internal' does not match original declaration [-Wlto-type-mismatch]
493 | extern SQLRETURN SQLFreeConnect_Internal (SQLHDBC hdbc);
| ^
hdbc.c:265:1: note: type mismatch in parameter 2
265 | SQLFreeConnect_Internal (SQLHDBC hdbc, int ver)
| ^
hdbc.c:265:1: note: type 'int' should match type 'void'
hdbc.c:265:1: note: 'SQLFreeConnect_Internal' was previously declared here
There is a missing ver parameter in the declaration of SQLFreeConnect_Internal on line 493 of connect.c, and a missing argument in the call to that function on line 521.
This issue has already been fixed with commit de87bb7d71e84c93a7f13fb8d09121d690f59e9c on the develop branch.