tdbc::odbc

View Ticket
Login
Ticket Hash: 3406cad5971ca7311fd0f0b58e5b9af425dae104
Title: Wincompatible-pointer-types for latest commit
Status: Closed Type: Build_Problem
Severity: Critical Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2026-01-04 15:36:10
312.7 days ago
Created: 2026-01-03 23:15:43
313.4 days ago
Version Found In: 75aa4dcd56
User Comments:
anonymous added on 2026-01-03 23:15:43: (text/x-markdown)
Dear Jan,

latest commit 75aa4dcd56 building with TCL86 msys2 mingw64 results in an error:

generic/tdbcodbc.c: In function 'GetWCharStringFromObj':
generic/tdbcodbc.c:963:41: error: passing argument 1 of 'tclStubsPtr->tcl_Realloc' from incompatible
 pointer type [-Wincompatible-pointer-types]
  963 |         wcPtr = (SQLWCHAR*) Tcl_Realloc(retval, (len + 1) * sizeofSQLWCHAR);
      |                                         ^~~~~~
      |                                         |
      |                                         SQLWCHAR * {aka short unsigned int *}
generic/tdbcodbc.c:963:41: note: expected 'char *' but argument is of type 'SQLWCHAR *' {aka 'short
unsigned int *'}


Thank you for your support!
BR

anonymous added on 2026-01-04 02:20:06: (text/x-markdown)
Same issue with tdbcpostgres

jan.nijtmans added on 2026-01-04 15:36:10: (text/x-fossil-wiki)
Should be fixed now.

Thanks for the report!