[libxml++] [ libxmlplusplus-Patches-815073 ] Prevent warnings from gcc -Wcast-qual



Patches item #815073, was opened at 2003-09-30 12:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=312999&aid=815073&group_id=12999

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Wakely (redi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Prevent warnings from gcc -Wcast-qual

Initial Comment:
This patch changes some C-style casts to preserve

const-qualifications, so that GCC doesn' warn when the

-Wcast-qual switch is used.



Currently the return value of std::string::c_str()

(which has type const char*) is usually cast to

xmlChar*. This patch changes the cast to const xmlChar*

in these cases, and similarly for const xmlChar* to

char* conversions.



This is incomplete and only modifies three files. I'll

try to get round to the rest eventually.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=312999&aid=815073&group_id=12999




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