summaryrefslogtreecommitdiff
path: root/src/md
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-05-25 21:04:31 +0200
committerJan Vorlicek <janvorli@microsoft.com>2015-05-26 20:35:14 +0200
commitac80fe431901358305bbc35f11247d1de2f7412f (patch)
tree7bc763c0b148adcd6d3a084126f731d2e73e5191 /src/md
parent4d931ce9e79349733bb74389089b47d600a52fc3 (diff)
downloadcoreclr-ac80fe431901358305bbc35f11247d1de2f7412f.tar.gz
coreclr-ac80fe431901358305bbc35f11247d1de2f7412f.tar.bz2
coreclr-ac80fe431901358305bbc35f11247d1de2f7412f.zip
Fix warning no-overloaded-virtual
This warning is issued when a derived class defines a virtual method with the same name as its base class, but different set of parameters. The base class virtual method is hidden in that case. Clang issues a warning here. To fix the warning, I have added "using Base::Method" to the private section of all the derived classes.
Diffstat (limited to 'src/md')
-rw-r--r--src/md/compiler/regmeta.h7
-rw-r--r--src/md/inc/recordpool.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/md/compiler/regmeta.h b/src/md/compiler/regmeta.h
index d2ca0fa0ca..10642e46bb 100644
--- a/src/md/compiler/regmeta.h
+++ b/src/md/compiler/regmeta.h
@@ -109,6 +109,13 @@ struct CCustAttrHashKey
class CCustAttrHash : public CClosedHashEx<CCustAttrHashKey, CCustAttrHash>
{
typedef CCustAttrHashKey T;
+
+ using CClosedHashEx<CCustAttrHashKey, CCustAttrHash>::Hash;
+ using CClosedHashEx<CCustAttrHashKey, CCustAttrHash>::Compare;
+ using CClosedHashEx<CCustAttrHashKey, CCustAttrHash>::Status;
+ using CClosedHashEx<CCustAttrHashKey, CCustAttrHash>::SetStatus;
+ using CClosedHashEx<CCustAttrHashKey, CCustAttrHash>::GetKey;
+
public:
CCustAttrHash(int iBuckets=37) : CClosedHashEx<CCustAttrHashKey,CCustAttrHash>(iBuckets) {}
unsigned int Hash(const T *pData);
diff --git a/src/md/inc/recordpool.h b/src/md/inc/recordpool.h
index 65d8700ec5..15c5532bc0 100644
--- a/src/md/inc/recordpool.h
+++ b/src/md/inc/recordpool.h
@@ -25,6 +25,10 @@
class RecordPool : public StgPool
{
friend class VerifyLayoutsMD;
+
+ using StgPool::InitNew;
+ using StgPool::InitOnMem;
+
public:
RecordPool() :
StgPool(1024, 1)