[ http://nagoya.apache.org/jira/browse/XERCESC-1294?page=comments#action_54955 ]
     
PeiYong Zhang commented on XERCESC-1294:
----------------------------------------

Norman,

    I've put a patch in cvs, could you please verify? thanks.

Rgds,
PeiYong

> Compiler Warnings on IRIX with MIPSpro compiler ver 7.4
> -------------------------------------------------------
>
>          Key: XERCESC-1294
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-1294
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build, DOM
>     Versions: 2.6.0
>  Environment: MIPSpro compiler version 7.4
> IRIX 6.5
>     Reporter: Norman Samuelson
>     Priority: Minor

>
> Every file that includes xercesc/dom/DOMDocument.hpp results in a couple of warnings 
> about unused parameters.  The compiler is unhappy that params are defined and never 
> used.  Here is the offending code:
>     virtual DOMDocumentType* createDocumentType(const XMLCh *qName,
>                                                 const XMLCh *publicId,
>                                                 const XMLCh *systemId)
>     {
>         return createDocumentType(qName);
>     }
> I understand that the function is defined this way to maintain compatibility, but 
> warnings are annoying and ignoring them leads to dangerous territory.  One easy way 
> to fix this would be to add the following two lines just before the return statement:
>         if (publicId) ; /* unused arg */
>         if (systemId) ; /* unused arg */
> This may not work on all platforms, as it might cause other warnings, but similar 
> techniques should work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to