[ 
https://issues.apache.org/jira/browse/PROTON-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14271107#comment-14271107
 ] 

Cliff Jansen commented on PROTON-794:
-------------------------------------

This also fails on Linux if using BUILD_WITH_CXX in cmake.

The compiler can be mollified with a double cast, first to a size_t or ssize_t, 
then to the enum, but check with Andrew if that passes the C++ smell test.

Alternatively the enum could be stored and retrieved as a pointer offset.

> [Windows] Visual Studio 2008 compile error
> ------------------------------------------
>
>                 Key: PROTON-794
>                 URL: https://issues.apache.org/jira/browse/PROTON-794
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.9
>         Environment: Windows Server 2008 32 bit
> Visual Studio 2008
>            Reporter: Chuck Rolke
>
> {noformat}
> 13>------ Rebuild All started: Project: c-reactor-tests, Configuration: 
> RelWithDebInfo Win32 ------
> 13>Deleting intermediate and output files for project 'c-reactor-tests', 
> configuration 'RelWithDebInfo|Win32'
> 13>Building Custom Rule 
> C:/Hudson/jobs/rh_qpid_proton-trunk/workspace/rh-qpid-proton/proton-c/src/tests/CMakeLists.txt
> 13>CMake does not need to re-run because 
> C:\Hudson\jobs\rh_qpid_proton-trunk\workspace\rh-qpid-proton\build\proton-c\src\tests\CMakeFiles\generate.stamp
>  is up-to-date.
> 13>Compiling...
> 13>reactor.c
> 13>..\..\..\..\proton-c\src\tests\reactor.c(80) : error C2440: 'type cast' : 
> cannot convert from 'void *' to 'pn_event_type_t'
> 13>        There is no context in which this conversion is possible
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to