Skip to content

Missing parameter to SQLFreeConnect_Internal in connect.c #107

@jamesjer

Description

@jamesjer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions