GNOME Bugzilla – Bug 316497
Warnings 'different const qualifier' are reported for xmlregexp module by VC
Last modified: 2005-10-13 15:45:17 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:
Rob Richards fixed them in CVS, thanks ! Daniel