[xml] FW: [xml/xslt] In Windows: compiler warnings and proposed resolu tion
- From: Chris_Poblete Dell com
- To: xml gnome org
- Subject: [xml] FW: [xml/xslt] In Windows: compiler warnings and proposed resolu tion
- Date: Sun, 26 Aug 2001 22:03:26 -0500
-----Original Message-----
From: Poblete, Chris
Sent: Sunday, August 26, 2001 12:30 PM
To: Daniel Veillard (E-mail)
Subject: [xml/xslt] In Windows: compiler warnings and proposed
resolution
VERSIONS: libxml2-2.4.3
libxslt-1.0.3
SEVERITY: LOW
PROBLEM: Eliminate compiler warnings in Windows NT/2000
SAMPLE COMPILATION: MS Visual C++ 6.0 SP5
cl.exe /nologo /MT /W3 /GX /O2 /I "..\..\common\include" /I "..\\" /D
"NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "STATIC" /D "LIBXML_STATIC"
/Fp".\Release\libxml32.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c
..\..\common\src\entities.c entities.c
PROPOSED RESOLUTION:
------------------------------------------------------------
warning C4761: integral size mismatch in argument; conversion supplied
----------
valid.c:3482
< vstateVPush(ctxt, CONT->c2, NODE, DEPTH + 1, OCCURS,
ROLLBACK_OR);
vstateVPush(ctxt, CONT->c2, NODE, (unsigned char)(DEPTH + 1),
OCCURS, ROLLBACK_OR);
------------------------------------------------------------
warning C4761: integral size mismatch in argument; conversion supplied
----------
numbers.c:60
<#define IS_DIGIT_ONE(x) xsltIsDigitZero((x)-1)
#define IS_DIGIT_ONE(x) xsltIsDigitZero((xmlChar)((x)-1))
------------------------------------------------------------
warning C4244: '=' : conversion from 'double ' to 'float ', possible loss
of data
----------
xslt.c:1590
< ret->priority = priority;
ret->priority = (float)priority;
------------------------------------------------------------
numbers.c(633) : warning C4048: different array subscripts :
'struct _xsltNumberFormatToken (*)[]' and 'struct
_xsltNumberFormatToken (*)[1024]'
numbers.c(633) : warning C4024: 'xsltNumberFormatInsertNumbers' :
different types for formal and actual parameter 4
numbers.c(653) : warning C4048: different array subscripts :
'struct _xsltNumberFormatToken (*)[]' and 'struct
_xsltNumberFormatToken (*)[1024]'
numbers.c(653) : warning C4024: 'xsltNumberFormatInsertNumbers' :
different types for formal and actual parameter 4
numbers.c(672) : warning C4048: different array subscripts :
'struct _xsltNumberFormatToken (*)[]' and 'struct
_xsltNumberFormatToken (*)[1024]'
numbers.c(672) : warning C4024: 'xsltNumberFormatInsertNumbers' :
different types for formal and actual parameter 4
numbers.c(689) : warning C4048: different array subscripts :
'struct _xsltNumberFormatToken (*)[]' and 'struct
_xsltNumberFormatToken (*)[1024]'
numbers.c(689) : warning C4024: 'xsltNumberFormatInsertNumbers' :
different types for formal and actual parameter 4
----------
numbers.c:276
<static void
<xsltNumberFormatInsertNumbers(xsltNumberDataPtr data,
< double *numbers,
< int numbers_max,
< xsltNumberFormatToken (*array)[],
< int array_max,
< xmlBufferPtr buffer)
static void
xsltNumberFormatInsertNumbers(xsltNumberDataPtr data,
double *numbers,
int numbers_max,
xsltNumberFormatToken **array,
int array_max,
xmlBufferPtr buffer)
----------
numbers.c:584,604,623,640
<< &array,
(xsltNumberFormatToken **)&array,
------------------------------------------------------------
_______________________________
Chris Poblete
Dell © Enterprise Servers Group
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]