Re: [xml] Last compiler warnings (Windows)
- From: Daniel Veillard <veillard redhat com>
- To: Aleksey Sanin <aleksey aleksey com>
- Cc: Igor Zlatkovic <igor stud fh-frankfurt de>, xml gnome org
- Subject: Re: [xml] Last compiler warnings (Windows)
- Date: Tue, 16 Apr 2002 16:12:40 -0400
Well, sometimes const on a pointer can be nasty, but in that case since
xmlCopyNode uses the const form, I don't see why this would raise a problem
for similar functions.
Concerning the Windows header, please go ahead too,
Daniel
On Tue, Apr 16, 2002 at 12:34:54PM -0700, Aleksey Sanin wrote:
I don't think that changing the function declaration from
something(pointer p)
to
something(const pointer p)
will create any warnings for applications simply because "const" here
tells the application that 'p' will not be changed in the function.
I absolutelly sure that it can remove some warnings but not add new ones.
Aleksey.
Two functions, xmlDocCopyNode and xmlCopyNodeList, have the first parameter
declared differently in the prototype (tree.h) and the implementation
(tree.c). Since the declaration in tree.c seems more apropriate to me, the
one in tree.h could be adapted to match it. The patch for this is also
further below and if there are no objections, I would commit this one as
well. Please beware: this is a change in a public header file! While it
would eliminate the warning in libxml, it could introduce hundreds of
warnings in hundreds of applications which use libxml. On the other side,
that should not prevent us from making the API cleaner. Should I apply it,
or rather wait for the end of the API-freeze period?
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]