[jira] [Commented] (PROTON-794) [Windows] Visual Studio 2008 compile error

2015-01-09 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on PROTON-794:


Commit efa5eab5f4ffb504fca8da36f4d05f9732627f1b in qpid-proton's branch 
refs/heads/master from [~chug]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=efa5eab ]

PROTON-794: Visual Studio 2008 fails to convert void* to enum.


 [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 --
 13Deleting intermediate and output files for project 'c-reactor-tests', 
 configuration 'RelWithDebInfo|Win32'
 13Building Custom Rule 
 C:/Hudson/jobs/rh_qpid_proton-trunk/workspace/rh-qpid-proton/proton-c/src/tests/CMakeLists.txt
 13CMake 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.
 13Compiling...
 13reactor.c
 13..\..\..\..\proton-c\src\tests\reactor.c(80) : error C2440: 'type cast' : 
 cannot convert from 'void *' to 'pn_event_type_t'
 13There is no context in which this conversion is possible
 {noformat}



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


[jira] [Commented] (PROTON-794) [Windows] Visual Studio 2008 compile error

2015-01-09 Thread Cliff Jansen (JIRA)

[ 
https://issues.apache.org/jira/browse/PROTON-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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 --
 13Deleting intermediate and output files for project 'c-reactor-tests', 
 configuration 'RelWithDebInfo|Win32'
 13Building Custom Rule 
 C:/Hudson/jobs/rh_qpid_proton-trunk/workspace/rh-qpid-proton/proton-c/src/tests/CMakeLists.txt
 13CMake 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.
 13Compiling...
 13reactor.c
 13..\..\..\..\proton-c\src\tests\reactor.c(80) : error C2440: 'type cast' : 
 cannot convert from 'void *' to 'pn_event_type_t'
 13There is no context in which this conversion is possible
 {noformat}



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