From ed7ca16288429146239fbcef6970ce58f185b083 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 2 Jan 2015 17:56:20 +0100 Subject: [PATCH] test_mon_workloadgen.cc: fix warning about self init Fix for: [src/test/mon/test_mon_workloadgen.cc:351]: (error) Member variable 'whoami' is initialized by itself. Signed-off-by: Danny Al-Gaaf --- src/test/mon/test_mon_workloadgen.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/mon/test_mon_workloadgen.cc b/src/test/mon/test_mon_workloadgen.cc index b47c46fa45fca..cb3419c53acdc 100644 --- a/src/test/mon/test_mon_workloadgen.cc +++ b/src/test/mon/test_mon_workloadgen.cc @@ -342,14 +342,14 @@ class OSDStub : public TestStub }; - OSDStub(int whoami, CephContext *cct) + OSDStub(int _whoami, CephContext *cct) : TestStub(cct, "osd"), auth_handler_registry(new AuthAuthorizeHandlerRegistry( cct, cct->_conf->auth_cluster_required.length() ? cct->_conf->auth_cluster_required : cct->_conf->auth_supported)), - whoami(whoami), + whoami(_whoami), gen(whoami), mon_osd_rng(STUB_MON_OSD_FIRST, STUB_MON_OSD_LAST) { -- 2.39.5