From dae280953121948d45628551a480ad55b5b478f4 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 21 Jul 2018 14:35:39 -0700 Subject: [PATCH] Fix a few warnings --- src/builtin_string.cpp | 1 - src/history.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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;