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 "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2010/05/09 19:02:49 UTC
[jira] Closed: (XERCESC-1922) MacOSUnicodeConverter.cpp: ISO C++
forbids comparison between pointer of type 'void *' and pointer-to-function
[ https://issues.apache.org/jira/browse/XERCESC-1922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1922.
------------------------------------
Fix Version/s: 3.1.2
3.2.0
(was: 3.1.0)
Resolution: Fixed
Fix is in SVN, thanks.
> MacOSUnicodeConverter.cpp: ISO C++ forbids comparison between pointer of type 'void *' and pointer-to-function
> --------------------------------------------------------------------------------------------------------------
>
> Key: XERCESC-1922
> URL: https://issues.apache.org/jira/browse/XERCESC-1922
> Project: Xerces-C++
> Issue Type: Improvement
> Components: Build
> Environment: Mac OS X 10.6.3, g++ 4.2.1, xerces 3.1
> Reporter: isidoro ghezzi
> Priority: Minor
> Fix For: 3.1.2, 3.2.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Compiling with $ g++ --version
> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
> having -Wall -Wextra -Wconversion -ansi -pedantic flags the result is:
> xercesc/util/Transcoders/MacOSUnicodeConverter/MacOSUnicodeConverter.cpp: In static member function 'static bool xercesc_3_1::MacOSUnicodeConverter::IsMacOSUnicodeConverterSupported()':
> xercesc/util/Transcoders/MacOSUnicodeConverter/MacOSUnicodeConverter.cpp:461: error: ISO C++ forbids comparison between pointer of type 'void *' and pointer-to-function
> xercesc/util/Transcoders/MacOSUnicodeConverter/MacOSUnicodeConverter.cpp:462: error: ISO C++ forbids comparison between pointer of type 'void *' and pointer-to-function
> to avoid that, i suggest to change:
> [code]
> bool
> MacOSUnicodeConverter::IsMacOSUnicodeConverterSupported(void)
> {
> return UpgradeScriptInfoToTextEncoding != (void*)NULL
> && CreateTextToUnicodeInfoByEncoding != (void*)NULL
> ;
> }
> [/code]
> to:
> [code]
> bool
> MacOSUnicodeConverter::IsMacOSUnicodeConverterSupported(void)
> {
> return (0L != UpgradeScriptInfoToTextEncoding)
> && (0L != CreateTextToUnicodeInfoByEncoding)
> ;
> }
> [/code]
--
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