From 2c32885a2d64aebe4f37fa3fe40801ba91091fd7 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 5 Aug 2019 18:04:37 +0200 Subject: [PATCH] Fix build on old gcc by using old-school initialization It appears Gcc 4.8 doesn't get this particular expression, so we just revert to the old `type foo = bar` style from the new `type foo{bar}`. Fixes #6027. --- src/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.cpp b/src/history.cpp index ea1f7ae59..704a59e04 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -835,7 +835,7 @@ struct history_impl_t { std::unique_ptr file_contents{}; // The file ID of the history file. - file_id_t history_file_id{kInvalidFileID}; + file_id_t history_file_id = kInvalidFileID; // The boundary timestamp distinguishes old items from new items. Items whose timestamps are <= // the boundary are considered "old". Items whose timestemps are > the boundary are new, and are