Fix a few warnings

This commit is contained in:
ridiculousfish 2018-07-21 14:35:39 -07:00
parent a11e955c84
commit dae2809531
2 changed files with 1 additions and 2 deletions

View File

@ -1138,7 +1138,6 @@ static int string_repeat(parser_t &parser, io_streams_t &streams, int argc, wcha
int retval = parse_opts(&opts, &optind, 0, argc, argv, parser, streams);
if (retval != STATUS_CMD_OK) return retval;
const wchar_t *to_repeat;
bool is_empty = true;
arg_iterator_t aiter(argv, optind, streams);

View File

@ -838,7 +838,7 @@ history_t &history_t::history_with_name(const wcstring &name) {
}
history_t::history_t(wcstring pname)
: name(std::move(pname)), boundary_timestamp(time(NULL)), history_file_id(kInvalidFileID) {}
: name(std::move(pname)), history_file_id(kInvalidFileID), boundary_timestamp(time(NULL)) {}
history_t::~history_t() = default;