Changeset 70:c13cb74bba5c in finroc_plugins_network_transport


Ignore:
Timestamp:
06.02.2021 21:48:12 (8 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
71:ed7a2222c5c4, 72:d0276f64c6d0
Phase:
public
Message:

Fixes compiler warnings that appear with additional non-default warning options enabled

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • generic_protocol/tConnection.cpp

    r69 r70  
    218218void tConnection::ProcessPeerInfoMessage(rrlib::serialization::tMemoryBuffer& buffer) 
    219219{ 
    220   throw std::runtime_error("PEER_INFO OpCode not implemented in this network transport"); 
     220  FINROC_LOG_PRINT(WARNING, "PEER_INFO OpCode not implemented in this network transport"); 
    221221} 
    222222 
  • generic_protocol/tRemoteRuntime.cpp

    r37 r70  
    10121012  rrlib::serialization::tOutputStream& stream = GetExpressConnection()->CurrentWriteStream();  // pull request is small -> we can always use express connection 
    10131013  bool legacy = stream.GetTargetInfo().revision == 0; 
    1014   uint8_t message_flags = legacy ? message_flags::cBINARY_ENCODING : pull_call_info.message_flags; 
     1014  uint8_t message_flags = legacy ? static_cast<uint8_t>(message_flags::cBINARY_ENCODING) : pull_call_info.message_flags; 
    10151015  tPullCall::Serialize(true, true, stream, legacy ? pull_call_info.remote_port_handle : pull_call_info.connection_handle, pull_call_info.call_id, message_flags); 
    10161016  // Send immediately? (pull calls are somewhat outdated -> no); ex-code: this->SendPendingMessages(rrlib::time::Now(true)); 
  • runtime_info/tConnectorInfo.h

    r22 r70  
    8282  } id; 
    8383 
    84   friend inline rrlib::serialization::tOutputStream& operator << (rrlib::serialization::tOutputStream& stream, const tConnectorInfo::tID& info); 
    85  
    8684 
    8785  struct tStaticInfo 
  • runtime_info/tRemoteType.cpp

    r67 r70  
    341341      break; 
    342342    case rrlib::rtti::tTypeClassification::NULL_TYPE: 
     343    default: 
    343344      break; 
    344345    } 
Note: See TracChangeset for help on using the changeset viewer.