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 "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2009/06/30 12:51:47 UTC
[jira] Resolved: (XERCESC-1872) string literal assigned to char*
[ https://issues.apache.org/jira/browse/XERCESC-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Massari resolved XERCESC-1872.
--------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0
3.0.2
Assignee: Alberto Massari
The fix is in SVN
> string literal assigned to char*
> --------------------------------
>
> Key: XERCESC-1872
> URL: https://issues.apache.org/jira/browse/XERCESC-1872
> Project: Xerces-C++
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 3.0.1
> Reporter: Jonathan Wakely
> Assignee: Alberto Massari
> Priority: Minor
> Fix For: 3.0.2, 3.1.0
>
>
> GCC warns:
> xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp: In constructor 'xercesc_3_0::IconvGNUTransService::IconvGNUTransService(xercesc_3_0::MemoryManager*)':
> xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp:410: warning: deprecated conversion from string constant to 'char*'
> xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp:414: warning: deprecated conversion from string constant to 'char*'
> fixed by this patch
> --- 3.0.1/xerces-c-3.0.1/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp 2008-07-15 17:29:19.000000000 +0100
> +++ xerces-c-3.0.1/src/xercesc/util/Transcoders/IconvGNU/IconvGNUTransService.cpp 2009-06-08 13:40:52.086404321 +0100
> @@ -392,7 +392,7 @@
> // Using an empty string instead of NULL, will modify the libc
> // behavior.
> //
> - char* fLocalCP = setlocale (LC_CTYPE, NULL);
> + const char* fLocalCP = setlocale (LC_CTYPE, NULL);
> if (fLocalCP == NULL || *fLocalCP == 0 ||
> strcmp (fLocalCP, "C") == 0 ||
> strcmp (fLocalCP, "POSIX") == 0) {
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org