Skip to content

Commit

Permalink
Bug 833931: Suppress unused-result warnings in OfflineCacheUpdatePare…
Browse files Browse the repository at this point in the history
…nt.cpp w/ mozilla::unused. r=mayhemer
  • Loading branch information
dholbert committed Jan 23, 2013
1 parent bd37e87 commit c4b94d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions uriloader/prefetch/OfflineCacheUpdateParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "mozilla/dom/TabParent.h"
#include "mozilla/ipc/URIUtils.h"
#include "mozilla/unused.h"
#include "nsOfflineCacheUpdate.h"
#include "nsIApplicationCache.h"
#include "nsNetUtil.h"
Expand Down Expand Up @@ -139,7 +140,7 @@ OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uin

uint64_t byteProgress;
aUpdate->GetByteProgress(&byteProgress);
SendNotifyStateEvent(state, byteProgress);
unused << SendNotifyStateEvent(state, byteProgress);

if (state == nsIOfflineCacheUpdateObserver::STATE_FINISHED) {
// Tell the child the particulars after the update has finished.
Expand All @@ -150,7 +151,7 @@ OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uin
bool succeeded;
aUpdate->GetSucceeded(&succeeded);

SendFinish(succeeded, isUpgrade);
unused << SendFinish(succeeded, isUpgrade);
}

return NS_OK;
Expand All @@ -169,7 +170,7 @@ OfflineCacheUpdateParent::ApplicationCacheAvailable(nsIApplicationCache *aApplic
nsCString cacheGroupId;
aApplicationCache->GetGroupID(cacheGroupId);

SendAssociateDocuments(cacheGroupId, cacheClientId);
unused << SendAssociateDocuments(cacheGroupId, cacheClientId);
return NS_OK;
}

Expand Down

0 comments on commit c4b94d9

Please sign in to comment.