[xml] [xslt] Windows compilation warning: argument - incompatible typ es



VERSIONS: libxml2-2.4.3
          libxslt-1.0.3

SEVERITY: MEDIUM

PROBLEM: Windows compilation warning:  argument - incompatible types.
Passing a pointer to a different structure to function xsltPrintErrorContext
may produce an unpredictable result.

SAMPLE COMPILATION:  MS Visual C++ 6.0 SP5
        cl.exe /nologo /MT /W3 /GX /O2 /I "..\..\common\include" /I
"..\..\common\include\libxslt" /I "..\..\..\libxml\common\include" /I "..\\"
/D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "STATIC" /D "LIBXSLT_STATIC"
/D "LIBXML_STATIC" /Fp".\Release\libxslt32.pch" /YX /Fo".\Release\\"
/Fd".\Release\\" /FD /c ..\..\common\src\extensions.c
extensions.c
..\..\common\src\extensions.c(975) : warning C4133: 'function' :
incompatible types - from 'struct _xsltStylesheet *' to 'struct
_xsltTransformContext *'


PROPOSED RESOLUTION:
------------------------------------------------------------
extensions.c:975
<       xsltPrintErrorContext(style, NULL, NULL);
----------
      xsltPrintErrorContext(xsltGenericErrorContext, style, NULL);
------------------------------------------------------------



_______________________________
Chris Poblete
Dell © Enterprise Servers Group






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]