Fix a few mild warnings with gcc 4.8

This commit is contained in:
ridiculousfish 2021-05-10 15:58:05 -07:00
parent 91a4059a8f
commit 04535e9701
3 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,7 @@ class env_var_t {
static env_var_flags_t flags_for(const wchar_t *name);
static std::shared_ptr<const wcstring_list_t> empty_list();
env_var_t &operator=(const env_var_t &var) = default;
env_var_t &operator=(const env_var_t &) = default;
env_var_t &operator=(env_var_t &&) = default;
bool operator==(const env_var_t &rhs) const {

View File

@ -56,7 +56,7 @@ class separated_buffer_t {
/// We may be moved.
/// Note this leaves the moved-from value in a bogus state until clear() is called on it.
separated_buffer_t(separated_buffer_t &&rhs) = default;
separated_buffer_t(separated_buffer_t &&) = default;
separated_buffer_t &operator=(separated_buffer_t &&) = default;
/// Construct a separated_buffer_t with the given buffer limit \p limit, or 0 for no limit.

View File

@ -179,8 +179,8 @@ class maybe_t : private maybe_detail::conditionally_copyable_t<T> {
// Note that defaulting these allows these to be conditionally deleted via
// conditionally_copyable_t().
maybe_t &operator=(const maybe_t &v) = default;
maybe_t &operator=(maybe_t &&v) = default;
maybe_t &operator=(const maybe_t &) = default;
maybe_t &operator=(maybe_t &&) = default;
// Dereference support.
const T *operator->() const { return &value(); }