You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Michael Gmelin (JIRA)" <xe...@xml.apache.org> on 2012/09/11 12:54:07 UTC

[jira] [Created] (XERCESC-1995) Allow compiling Xerces-C using C++11 (especially Clang)

Michael Gmelin created XERCESC-1995:
---------------------------------------

             Summary: Allow compiling Xerces-C using C++11 (especially Clang)
                 Key: XERCESC-1995
                 URL: https://issues.apache.org/jira/browse/XERCESC-1995
             Project: Xerces-C++
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 3.1.1
         Environment: Shouldn't matter (FreeBSD9.1 RC1)
            Reporter: Michael Gmelin
            Priority: Minor


gcc issues a couple of warnings in C++11 about narrowing conversions, clang refuses to build for the same reason.

The attached patch solves this trivial problem by adding a few static casts in the right places.

While you're on it you might also want to apply XERCESC-1994, which had been revealed by compiling xerces-c using Clang.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] [Resolved] (XERCESC-1995) Allow compiling Xerces-C using C++11 (especially Clang)

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari resolved XERCESC-1995.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2.0
         Assignee: Alberto Massari

A fix is in SVN. Please verify.
                
> Allow compiling Xerces-C using C++11 (especially Clang)
> -------------------------------------------------------
>
>                 Key: XERCESC-1995
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1995
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 3.1.1
>         Environment: Shouldn't matter (FreeBSD9.1 RC1)
>            Reporter: Michael Gmelin
>            Assignee: Alberto Massari
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.2.0
>
>         Attachments: CompileXercersC++11.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> gcc issues a couple of warnings in C++11 about narrowing conversions, clang refuses to build for the same reason.
> The attached patch solves this trivial problem by adding a few static casts in the right places.
> While you're on it you might also want to apply XERCESC-1994, which had been revealed by compiling xerces-c using Clang.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] [Updated] (XERCESC-1995) Allow compiling Xerces-C using C++11 (especially Clang)

Posted by "Michael Gmelin (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Gmelin updated XERCESC-1995:
------------------------------------

    Attachment: CompileXercersC++11.patch

Patch to allow clean compilation using (Clang|gcc) -std=c++11 
                
> Allow compiling Xerces-C using C++11 (especially Clang)
> -------------------------------------------------------
>
>                 Key: XERCESC-1995
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1995
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 3.1.1
>         Environment: Shouldn't matter (FreeBSD9.1 RC1)
>            Reporter: Michael Gmelin
>            Priority: Minor
>              Labels: patch
>         Attachments: CompileXercersC++11.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> gcc issues a couple of warnings in C++11 about narrowing conversions, clang refuses to build for the same reason.
> The attached patch solves this trivial problem by adding a few static casts in the right places.
> While you're on it you might also want to apply XERCESC-1994, which had been revealed by compiling xerces-c using Clang.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] [Closed] (XERCESC-1995) Allow compiling Xerces-C using C++11 (especially Clang)

Posted by "Michael Gmelin (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Gmelin closed XERCESC-1995.
-----------------------------------


Checked the patches, they look all ok. Out of curiosity and for future contributions: Is there a specific reason, why all static_casts have been changed to C-style casts (coding style guidelines)?
                
> Allow compiling Xerces-C using C++11 (especially Clang)
> -------------------------------------------------------
>
>                 Key: XERCESC-1995
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1995
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 3.1.1
>         Environment: Shouldn't matter (FreeBSD9.1 RC1)
>            Reporter: Michael Gmelin
>            Assignee: Alberto Massari
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.2.0
>
>         Attachments: CompileXercersC++11.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> gcc issues a couple of warnings in C++11 about narrowing conversions, clang refuses to build for the same reason.
> The attached patch solves this trivial problem by adding a few static casts in the right places.
> While you're on it you might also want to apply XERCESC-1994, which had been revealed by compiling xerces-c using Clang.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] [Commented] (XERCESC-1995) Allow compiling Xerces-C using C++11 (especially Clang)

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESC-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455660#comment-13455660 ] 

Alberto Massari commented on XERCESC-1995:
------------------------------------------

Yes, we try to avoid newer keywords unless they are really needed, to avoid dropping old compilers for unnecessary reasons
                
> Allow compiling Xerces-C using C++11 (especially Clang)
> -------------------------------------------------------
>
>                 Key: XERCESC-1995
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1995
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 3.1.1
>         Environment: Shouldn't matter (FreeBSD9.1 RC1)
>            Reporter: Michael Gmelin
>            Assignee: Alberto Massari
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.2.0
>
>         Attachments: CompileXercersC++11.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> gcc issues a couple of warnings in C++11 about narrowing conversions, clang refuses to build for the same reason.
> The attached patch solves this trivial problem by adding a few static casts in the right places.
> While you're on it you might also want to apply XERCESC-1994, which had been revealed by compiling xerces-c using Clang.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org