Fix gcc warnings harder

This commit is contained in:
ridiculousfish 2019-12-17 19:51:00 -08:00
parent 7ab373fbbd
commit e52433d6fe
2 changed files with 5 additions and 4 deletions

View File

@ -211,10 +211,10 @@ completion_t::completion_t(wcstring comp, wcstring desc, string_fuzzy_match_t ma
match(std::move(mat)),
flags(resolve_auto_space(completion, flags_val)) {}
completion_t::completion_t(const completion_t &him) = default;
completion_t::completion_t(completion_t &&him) = default;
completion_t &completion_t::operator=(const completion_t &him) = default;
completion_t &completion_t::operator=(completion_t &&him) = default;
completion_t::completion_t(const completion_t &) = default;
completion_t::completion_t(completion_t &&) = default;
completion_t &completion_t::operator=(const completion_t &) = default;
completion_t &completion_t::operator=(completion_t &&) = default;
completion_t::~completion_t() = default;
bool completion_t::is_naturally_less_than(const completion_t &a, const completion_t &b) {

View File

@ -793,6 +793,7 @@ static proc_performer_t get_performer_for_process(process_t *p, const job_t *job
case eval_result_t::cancelled:
// TODO: we should reflect the actual signal which was received.
return proc_status_t::from_signal(SIGINT);
default:
case eval_result_t::control_flow:
DIE("eval_result_t::control_flow should not be returned from eval_node");
}