]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_mon_workloadgen.cc: fix warning about self init
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 2 Jan 2015 16:56:20 +0000 (17:56 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 7 Jan 2015 09:14:11 +0000 (10:14 +0100)
Fix for:

[src/test/mon/test_mon_workloadgen.cc:351]: (error) Member variable
 'whoami' is initialized by itself.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/mon/test_mon_workloadgen.cc

index b47c46fa45fcabf84fda393783ed773c74c649c6..cb3419c53acdcf62043829591bdc764d7830bd55 100644 (file)
@@ -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)
   {