Skip to content

Commit c1bc95a

Browse files
committed
fix -Wincompatible-pointer-types
1 parent 39ad3e6 commit c1bc95a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docObj.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,9 +1852,7 @@ ErrorCodeToString(code)
18521852
}
18531853

18541854
void
1855-
TclXML_libxml2_ErrorHandler (ctx, error)
1856-
void *ctx; /* ignore - depends on context */
1857-
xmlErrorPtr error;
1855+
TclXML_libxml2_ErrorHandler (void *ctx, const xmlError *error)
18581856
{
18591857
ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
18601858
Tcl_Obj *objPtr;

include/tclxml-libxml2/tclxml-libxml2Decls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ EXTERN void TclXML_libxml2_DocKeep _ANSI_ARGS_((Tcl_Obj * objPtr,
5555
TclXML_libxml2_DocumentHandling keep));
5656
/* 10 */
5757
EXTERN void TclXML_libxml2_ErrorHandler _ANSI_ARGS_((void * ctx,
58-
xmlErrorPtr error));
58+
const xmlError *error));
5959
/* 11 */
6060
EXTERN void TclXML_libxml2_ResetError _ANSI_ARGS_((
6161
Tcl_Interp * interp));

0 commit comments

Comments
 (0)