gRPC: Fix Linux build issues

This commit is contained in:
Gaute Lindkvist 2019-05-24 07:55:15 +02:00
parent cc031e7895
commit 79645ceed9
3 changed files with 5 additions and 3 deletions

View File

@ -321,6 +321,8 @@ if (MSVC)
endif(RESINSIGHT_ENABLE_GRPC)
elseif (APPLE)
set( EXE_FILES MACOSX_BUNDLE)
else()
set_source_files_properties(${GRPC_CPP_SOURCES} PROPERTIES COMPILE_FLAGS "-Woverloaded-virtual")
endif()
set( EXE_FILES
${EXE_FILES}

View File

@ -298,7 +298,7 @@ void RiaGrpcClientStreamCallback<ServiceT, RequestT, ReplyT, StateHandlerT>::onI
this->setNextCallState(RiaAbstractGrpcCallback::INIT_REQUEST_COMPLETED);
// The read call will start reading the request data and push this callback back onto the command queue
// when the read call is completed.
m_reader.Read(&m_request, this);
m_reader.Read(&this->m_request, this);
}
//--------------------------------------------------------------------------------------------------
@ -320,7 +320,7 @@ void RiaGrpcClientStreamCallback<ServiceT, RequestT, ReplyT, StateHandlerT>::onI
}
// Start reading and push this back onto the command queue.
m_reader.Read(&m_request, this);
m_reader.Read(&this->m_request, this);
}
//--------------------------------------------------------------------------------------------------

View File

@ -75,7 +75,7 @@ public:
if (resultData->ensureKnownResultLoaded(resAddr))
{
if (timeStep < (int)resultData->timeStepCount(resAddr))
if (timeStep < resultData->timeStepCount(resAddr))
{
initResultAccess(caseData, request->grid_index(), porosityModel, timeStep, resAddr);
return grpc::Status::OK;