Silence a compiler warning about unused private field, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 13 Oct 2012 17:32:52 -0400
changeset 110329 919872b632ab30764ddd96e462ee89a2fbdebe31
parent 110328 3874d326bc540ec6e2b5456749d40bbe31082d11
child 110330 81de65c66eeeb797117d8777cc8a6708af5bc5f9
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
milestone19.0a1
Silence a compiler warning about unused private field, no bug
content/base/src/nsContentUtils.cpp
--- a/content/base/src/nsContentUtils.cpp
+++ b/content/base/src/nsContentUtils.cpp
@@ -272,17 +272,17 @@ public:
   {
   }
 
   ~EventListenerManagerMapEntry()
   {
     NS_ASSERTION(!mListenerManager, "caller must release and disconnect ELM");
   }
 
-private:
+protected:          // declared protected to silence clang warnings
   const void *mKey; // must be first, to look like PLDHashEntryStub
 
 public:
   nsRefPtr<nsEventListenerManager> mListenerManager;
 };
 
 static bool
 EventListenerManagerHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry,