diff --git a/src/builtin_string.cpp b/src/builtin_string.cpp index 01f079517..7ef17c8b9 100644 --- a/src/builtin_string.cpp +++ b/src/builtin_string.cpp @@ -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); diff --git a/src/history.cpp b/src/history.cpp index 922eb88c7..9673e88e9 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -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;