iODBC icon indicating copy to clipboard operation
iODBC copied to clipboard

Missing parameter to SQLFreeConnect_Internal in connect.c

Open jamesjer opened this issue 11 months ago • 1 comments

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.

jamesjer avatar Jan 15 '25 15:01 jamesjer

This issue has already been fixed with commit de87bb7d71e84c93a7f13fb8d09121d690f59e9c on the develop branch.

pkleef avatar Jan 15 '25 15:01 pkleef