Changeset 69:bc2442a352ac in finroc_plugins_network_transport


Ignore:
Timestamp:
12.12.2020 23:05:06 (5 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Fixes clang compiler warnings

Location:
generic_protocol
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic_protocol/tConnection.cpp

    r45 r69  
    9090  received_data_after_last_connect(false), 
    9191  double_buffered_writing(double_buffered_writing), 
    92   write_buffers({ rrlib::serialization::tMemoryBuffer(), rrlib::serialization::tMemoryBuffer(double_buffered_writing ? rrlib::serialization::tMemoryBuffer::cDEFAULT_SIZE : 0) }), 
    93               current_write_stream(), 
    94               back_buffer_locked(false), 
    95               closed(false) 
     92  write_buffers({{ rrlib::serialization::tMemoryBuffer(), rrlib::serialization::tMemoryBuffer(double_buffered_writing ? rrlib::serialization::tMemoryBuffer::cDEFAULT_SIZE : 0) }}), 
     93current_write_stream(), 
     94                     back_buffer_locked(false), 
     95                     closed(false) 
    9696{ 
    9797  sent_packet_data.fill(tSentPacketData(rrlib::time::cNO_TIME, 0)); 
  • generic_protocol/tNetworkTransportPlugin.cpp

    r63 r69  
    9090const std::array<rrlib::rtti::tParameterDefinition, 8> cPARAMETER_DEFINITION_ARRAY = 
    9191{ 
    92   tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_OPERATION_1, tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_OPERATION_2, 
    93   tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_PARAMETER_1, tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_PARAMETER_2, 
    94   tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_INTERMEDIATE_TYPE, tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_DESTINATION_TYPE, 
    95   tNetworkTransportPlugin::cPARAMETER_MINIMAL_UPDATE_INTERVAL, tNetworkTransportPlugin::cPARAMETER_HIGH_PRIORITY 
     92  { 
     93    tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_OPERATION_1, tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_OPERATION_2, 
     94    tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_PARAMETER_1, tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_PARAMETER_2, 
     95    tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_INTERMEDIATE_TYPE, tNetworkTransportPlugin::cPARAMETER_REMOTE_CONVERSION_DESTINATION_TYPE, 
     96    tNetworkTransportPlugin::cPARAMETER_MINIMAL_UPDATE_INTERVAL, tNetworkTransportPlugin::cPARAMETER_HIGH_PRIORITY 
     97  } 
    9698}; 
    9799const rrlib::rtti::tConstParameterDefinitionRange tNetworkTransportPlugin::cPARAMETER_DEFINITIONS(cPARAMETER_DEFINITION_ARRAY.begin(), cPARAMETER_DEFINITION_ARRAY.end()); 
  • generic_protocol/tUriConnector.cpp

    r49 r69  
    7676  parameter_array( 
    7777{ 
    78   rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_1), 
    79   rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_2), 
    80   rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_1_parameter), 
    81   rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_2_parameter), 
    82   rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.intermediate_type), 
    83   rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.destination_type), 
    84   rrlib::rtti::tTypedConstPointer(&dynamic_parameters.minimal_update_interval), 
    85   rrlib::rtti::tTypedConstPointer(&dynamic_parameters.high_priority) 
     78  { 
     79    rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_1), 
     80    rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_2), 
     81    rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_1_parameter), 
     82    rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.operation_2_parameter), 
     83    rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.intermediate_type), 
     84    rrlib::rtti::tTypedConstPointer(&static_parameters.server_side_conversion.destination_type), 
     85    rrlib::rtti::tTypedConstPointer(&dynamic_parameters.minimal_update_interval), 
     86    rrlib::rtti::tTypedConstPointer(&dynamic_parameters.high_priority) 
     87  } 
    8688}), 
    8789local_runtime_info(*plugin.LocalRuntimeInfo()) 
Note: See TracChangeset for help on using the changeset viewer.