Skip to content

Mismatched types for ValidDSNW parameter #108

Description

@jamesjer

When building with LTO, gcc warns:

SQLRemoveDSNFromIni.c:87:13: warning: type of 'ValidDSNW' does not match original declaration [-Wlto-type-mismatch]
   87 | extern BOOL ValidDSNW (LPCSTR);
      |             ^
SQLValidDSN.c:105:1: note: 'ValidDSNW' was previously declared here
  105 | ValidDSNW (LPCWSTR lpszDSN)
      | ^
SQLValidDSN.c:105:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used

The definition of ValidDSNW says that the argument has type LPCWSTR, but the prototype in SQLRemoveDSNFromIni.c says that it has type LPCSTR.

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