After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316497 - Warnings 'different const qualifier' are reported for xmlregexp module by VC
Warnings 'different const qualifier' are reported for xmlregexp module by VC
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-09-16 17:17 UTC by abolgar
Modified: 2005-10-13 15:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description abolgar 2005-09-16 17:17:19 UTC
Please describe the problem:
I compiled Libxml2 2.6.22 and CVS-head revision on Windows by VC6 SP6 and found
out a bunch of warnings are reported (this is for CVS):

xmlregexp.c
..\xmlregexp.c(6878) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6878) : warning C4022: 'xmlRealloc' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6881) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6881) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6892) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6892) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6899) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6899) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6908) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6908) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6917) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6917) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6922) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6922) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1

And for 2.6.22:

xmlregexp.c
..\xmlregexp.c(6864) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6864) : warning C4022: 'xmlRealloc' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6867) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6867) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6878) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6878) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6885) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6885) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6894) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6894) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6903) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6903) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\xmlregexp.c(6908) : warning C4090: 'function' : different 'const' qualifiers
..\xmlregexp.c(6908) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1


Also, I see warnings for module schematron.c (CVS):

schematron.c
..\schematron.c(565) : warning C4090: 'function' : different 'const' qualifiers
..\schematron.c(565) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\schematron.c(712) : warning C4090: 'function' : different 'const' qualifiers
..\schematron.c(712) : warning C4022: 'xmlFree' : pointer mismatch for actual
parameter 1
..\schematron.c(812) : warning C4090: 'function' : different 'const' qualifiers
..\schematron.c(812) : warning C4022: 'xmlRealloc' : pointer mismatch for actual
parameter 1


Steps to reproduce:
1. Just build libxml2 by VC6.


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Daniel Veillard 2005-10-13 15:45:17 UTC
Rob Richards fixed them in CVS,

  thanks !

Daniel