Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed repeated semicolon, this helps to compile etl without errors with -pedantic/-pedantic-errors flags. #100

Merged
merged 1 commit into from
Sep 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/etl/flat_multimap.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ namespace etl
//*********************************************************************
size_t count(key_parameter_t key) const
{
return refmap_t::count(key);;
return refmap_t::count(key);
}

//*********************************************************************
Expand Down
4 changes: 2 additions & 2 deletions include/etl/intrusive_forward_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ namespace etl
//*************************************************************************
bool is_trivial_list() const
{
return (start_link.link_type::etl_next == nullptr) || (start_link.link_type::etl_next->etl_next == nullptr);;
return (start_link.link_type::etl_next == nullptr) || (start_link.link_type::etl_next->etl_next == nullptr);
}

//*************************************************************************
Expand Down Expand Up @@ -598,7 +598,7 @@ namespace etl
//*************************************************************************
const_reference front() const
{
return static_cast<const value_type&>(*(this->get_head()));;
return static_cast<const value_type&>(*(this->get_head()));
}

//*************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions include/etl/intrusive_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ namespace etl
//*************************************************************************
const_reference front() const
{
return *static_cast<const value_type*>(this->get_head());;
return *static_cast<const value_type*>(this->get_head());
}

//*************************************************************************
Expand All @@ -683,7 +683,7 @@ namespace etl
//*************************************************************************
const_reference back() const
{
return *static_cast<const value_type*>(this->get_tail());;
return *static_cast<const value_type*>(this->get_tail());
}

//*************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion include/etl/queue_mpmc_mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ namespace etl
value = p_buffer[read_index];
p_buffer[read_index].~T();

read_index = get_next_index(read_index, MAX_SIZE);;
read_index = get_next_index(read_index, MAX_SIZE);

--current_size;

Expand Down
2 changes: 1 addition & 1 deletion include/etl/queue_spsc_isr.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace etl
value = p_buffer[read_index];
p_buffer[read_index].~T();

read_index = get_next_index(read_index, MAX_SIZE);;
read_index = get_next_index(read_index, MAX_SIZE);

--current_size;

Expand Down
2 changes: 1 addition & 1 deletion include/etl/reference_flat_multiset.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ namespace etl
//*********************************************************************
void erase(iterator first, iterator last)
{
lookup.erase(first.ilookup, last.ilookup);;
lookup.erase(first.ilookup, last.ilookup);
}

//*************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion include/etl/reference_flat_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ namespace etl
//*********************************************************************
void erase(iterator first, iterator last)
{
lookup.erase(first.ilookup, last.ilookup);;
lookup.erase(first.ilookup, last.ilookup);
}

//*************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion include/etl/stl/alternate/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ SOFTWARE.

template <typename T> const bool etl_integral_type<T>::is_specialized = true;
template <typename T> const int etl_integral_type<T>::digits = (CHAR_BIT * sizeof(T)) - (etl::is_signed<T>::value ? 1 : 0);
template <typename T> const int etl_integral_type<T>::digits10 = ETL_LOG2(digits);;
template <typename T> const int etl_integral_type<T>::digits10 = ETL_LOG2(digits);
template <typename T> const int etl_integral_type<T>::max_digits10 = 0;
template <typename T> const bool etl_integral_type<T>::is_signed = etl::is_signed<T>::value;
template <typename T> const bool etl_integral_type<T>::is_integer = true;
Expand Down
12 changes: 6 additions & 6 deletions include/etl/string_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,17 +630,17 @@ namespace etl

size_type find_last_of(T c, size_type position = npos) const
{
return find_last_of(etl::basic_string_view<T, TTraits>(&c, 1), position);;
return find_last_of(etl::basic_string_view<T, TTraits>(&c, 1), position);
}

size_type find_last_of(const T* text, size_type position, size_type count) const
{
return find_last_of(etl::basic_string_view<T, TTraits>(text, count), position);;
return find_last_of(etl::basic_string_view<T, TTraits>(text, count), position);
}

size_type find_last_of(const T* text, size_type position = npos) const
{
return find_last_of(etl::basic_string_view<T, TTraits>(text), position);;
return find_last_of(etl::basic_string_view<T, TTraits>(text), position);
}

//*************************************************************************
Expand Down Expand Up @@ -733,17 +733,17 @@ namespace etl

size_type find_last_not_of(T c, size_type position = npos) const
{
return find_last_not_of(etl::basic_string_view<T, TTraits>(&c, 1), position);;
return find_last_not_of(etl::basic_string_view<T, TTraits>(&c, 1), position);
}

size_type find_last_not_of(const T* text, size_type position, size_type count) const
{
return find_last_not_of(etl::basic_string_view<T, TTraits>(text, count), position);;
return find_last_not_of(etl::basic_string_view<T, TTraits>(text, count), position);
}

size_type find_last_not_of(const T* text, size_type position = npos) const
{
return find_last_not_of(etl::basic_string_view<T, TTraits>(text), position);;
return find_last_not_of(etl::basic_string_view<T, TTraits>(text), position);
}

//*************************************************************************
Expand Down