Skip to content

Commit

Permalink
Fixed unused variable warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed May 7, 2021
1 parent 216907a commit 51be233
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/frozen/bits/basic_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ class cvector<T, 0> {
constexpr cvector(size_type count, const T& value)
{
// static_assert(count == 0, "Cannot initialize empty cvector");
(void)count;
(void)value;
}

template <std::size_t M>
Expand Down Expand Up @@ -209,13 +211,13 @@ class cvector<T, 0> {
constexpr const value_type* data() const noexcept { return nullptr; }

// Modifiers
constexpr void push_back(const T & a) {}
constexpr void push_back(T && a) {}
constexpr void push_back(const T & a) { (void)a; }
constexpr void push_back(T && a) { (void)a; }
constexpr void pop_back() {}

constexpr void clear() {}

constexpr void fill(const value_type& val) {}
constexpr void fill(const value_type& val) { (void)val; }
};

template <class T, std::size_t N>
Expand Down Expand Up @@ -338,6 +340,8 @@ class carray<T, 0> {
constexpr carray(size_type count, const T& value)
{
// static_assert(count == 0, "Cannot initialize empty carray");
(void)count;
(void)value;
}

template <std::size_t M>
Expand Down Expand Up @@ -389,7 +393,7 @@ class carray<T, 0> {
constexpr const value_type* data() const noexcept { return nullptr; }

// Modifiers
constexpr void fill(const value_type& val) {}
constexpr void fill(const value_type& val) { (void)val; }

};

Expand Down

0 comments on commit 51be233

Please sign in to comment.