From 33254218b75a2fef8e5765d9d448ed819918d72b Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 23 Nov 2020 17:13:02 -0800 Subject: [PATCH] sim: ScopedCheckpointSection to public for mappingParamIn In clang, the following error was given: ``` In file included from build/X86/sim/eventq.hh:51: build/X86/sim/serialize.hh:533:19: error: 'ScopedCheckpointSection' is a protected member of 'Serializable' Serializable::ScopedCheckpointSection sec(os, sectionName); ^ build/X86/sim/serialize.hh:175:11: note: declared protected here class ScopedCheckpointSection { ^ ``` The use, at line 533, was introduced in this commit: https://gem5-review.googlesource.com/c/public/gem5/+/36135 This can be fixed by making ScopedCheckpointSection public. Change-Id: Ib6ffba18d5e8c37980d4febb548f2405cb45ce8c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37915 Reviewed-by: Ciro Santilli Reviewed-by: Daniel Carvalho Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/sim/serialize.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh index 987bee250..9e25d0987 100644 --- a/src/sim/serialize.hh +++ b/src/sim/serialize.hh @@ -171,7 +171,7 @@ class CheckpointIn */ class Serializable { - protected: + public: class ScopedCheckpointSection { public: /** @@ -224,7 +224,6 @@ class Serializable void nameOut(CheckpointIn &cp) {}; }; - public: /** * @ingroup api_serialize */ -- 2.30.2