Fix -Winconsistent-missing-override warnings introduced in bug 940273

RESOLVED FIXED in Firefox 39

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: dholbert, Assigned: dholbert)

Tracking

Trunk
mozilla39
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(firefox39 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
Bug 940273's commit ( http://hg.mozilla.org/mozilla-central/rev/b8dc4a7b444a ) introduced 3 -Winconsistent-missing-override build warnings (in clang 3.6 and newer), which are treated as errors in --enable-warnings-as-errors builds:

{
dom/cache/CacheParent.h:49:3: error: 'RecvPut' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]

   RecvPut(const RequestId& aRequestId, const CacheRequestResponse& aPut);
   ^
}

{
dom/cache/QuotaClient.cpp:197:3: error: 'AddRef' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]

   NS_INLINE_DECL_REFCOUNTING(CacheQuotaClient)
   ^
}


{
dom/cache/QuotaClient.cpp:197:3: error: 'Release' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
   NS_INLINE_DECL_REFCOUNTING(CacheQuotaClient)
   ^
}

Filing this bug on fixing those.
(Assignee)

Comment 1

4 years ago
(I'm gonna land a fix with the blanket r+ that ehsan granted me for fixes of this sort over on bug 1126447 comment 2.)
(Assignee)

Comment 2

4 years ago
Created attachment 8572842 [details] [diff] [review]
fix

Tree's closed at the moment; I'll land later.

Here's the fix, for the record.
https://hg.mozilla.org/mozilla-central/rev/76aa36cef867
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
status-firefox39: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.