Changeset 157:7de85ed96fec in finroc_plugins_data_ports


Ignore:
Timestamp:
04.05.2020 23:37:39 (12 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
14.08
Phase:
public
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/tPortBufferPool.h

    r136 r157  
    161161    if (buffer) 
    162162    { 
    163       return std::move(buffer); 
     163      return buffer; 
    164164    } 
    165165    return CreateBuffer(optimized::GetType(cheaply_copyable_type_index)); 
     
    176176    if (buffer) 
    177177    { 
    178       return std::move(buffer); 
     178      return buffer; 
    179179    } 
    180180    return possibly_create_buffer ? CreateBuffer(data_type) : tPointer(); 
Note: See TracChangeset for help on using the changeset viewer.