Changeset 159:d803411e6009 in finroc_plugins_data_ports


Ignore:
Timestamp:
04.05.2020 23:47:20 (12 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
160:3d341a80db92, 161:ca6023b95501
Phase:
public
Message:

Fixes compiler warning with gcc 9.3 ('moving a local object in a return statement prevents copy elision')

File:
1 edited

Legend:

Unmodified
Added
Removed
  • optimized/tThreadSpecificBufferPools.h

    r123 r159  
    120120    tBufferPointer result = pools[buffer_pool_index].GetUnusedBuffer((buffer_pool_index + 1) * cPOOL_BUFFER_SIZE_STEP, type); 
    121121    result->SetType(type); 
    122     return std::move(result); 
     122    return result; 
    123123  } 
    124124 
Note: See TracChangeset for help on using the changeset viewer.