mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 03:13:37 +08:00
Fix a few warnings
This commit is contained in:
parent
a11e955c84
commit
dae2809531
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user