Add 'const' to string casts?

Phil Shafer <[email protected]>
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.