Changeset 482:821a1922bd01 in finroc_core


Ignore:
Timestamp:
06.02.2021 21:32:06 (17 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
483:dc48593399ed, 484:1a2da4a0243c
Phase:
public
Message:

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • file_lookup.cpp

    r418 r482  
    139139  case tFileType::SOCKET: 
    140140    return S_ISSOCK(file_stat.st_mode); 
     141  default: 
     142    break; 
    141143  } 
    142144  return false; 
  • internal/tFrameworkElementRegister.cpp

    r468 r482  
    170170        } 
    171171      } 
    172       uint32_t secondary_end_index = (primary_index == primary_end_index) ? (last_index & cSECONDARY_INDEX_MASK) : cSECONDARY_INDEX_MASK; 
     172      uint32_t secondary_end_index = (primary_index == primary_end_index) ? (last_index & cSECONDARY_INDEX_MASK) : static_cast<uint32_t>(cSECONDARY_INDEX_MASK); 
    173173      for (size_t secondary_index = secondary_start_index; secondary_index <= secondary_end_index; secondary_index++) 
    174174      { 
  • tFrameworkElement.h

    r439 r482  
    601601      return temp; 
    602602    } 
    603     inline const bool operator == (const tChildIterator &other) const 
     603    inline bool operator == (const tChildIterator &other) const 
    604604    { 
    605605      return plain_iterator == other.plain_iterator; 
    606606    } 
    607     inline const bool operator != (const tChildIterator &other) const 
     607    inline bool operator != (const tChildIterator &other) const 
    608608    { 
    609609      return !(*this == other); 
     
    651651      return temp; 
    652652    } 
    653     inline const bool operator == (const tFilteredChildIterator &other) const 
     653    inline bool operator == (const tFilteredChildIterator &other) const 
    654654    { 
    655655      return plain_iterator == other.plain_iterator; 
    656656    } 
    657     inline const bool operator != (const tFilteredChildIterator &other) const 
     657    inline bool operator != (const tFilteredChildIterator &other) const 
    658658    { 
    659659      return !(*this == other); 
     
    709709    tSubElementIterator operator ++ (int); 
    710710 
    711     inline const bool operator == (const tSubElementIterator &other) const 
     711    inline bool operator == (const tSubElementIterator &other) const 
    712712    { 
    713713      return current_depth == other.current_depth && at_root == other.at_root && std::equal(other.iterator_stack.begin(), other.iterator_stack.end(), iterator_stack.begin()); 
    714714    } 
    715     inline const bool operator != (const tSubElementIterator &other) const 
     715    inline bool operator != (const tSubElementIterator &other) const 
    716716    { 
    717717      return !(*this == other); 
Note: See TracChangeset for help on using the changeset viewer.