[xslt] Add 'const' to string casts?
- From: Phil Shafer <phil juniper net>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: [xslt] Add 'const' to string casts?
- Date: Tue, 6 Sep 2011 13:06:20 -0400
gcc dislikes this cast (in xslt.h):
/**
* XSLT_NAMESPACE:
*
* The XSLT specification namespace.
*/
#define XSLT_NAMESPACE ((xmlChar *) "http://www.w3.org/1999/XSL/Transform")
The error is:
warning: cast discards qualifiers from pointer target type
Can this be changed to:
#define XSLT_NAMESPACE ((const xmlChar *) "http://www.w3.org/1999/XSL/Transform")
to avoid the warning?
Thanks,
Phil
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]