Bug 1032644 - Fix some -Wunused warnings in non-unified OS X build. r=ehsan

This commit is contained in:
Chris Peterson 2014-07-02 18:55:19 -07:00
parent afdeb7bf07
commit e56956aa2f
11 changed files with 13 additions and 20 deletions

View File

@ -6,6 +6,7 @@
#include "nsNullPrincipalURI.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/MemoryReporting.h"
#include "nsNetUtil.h"
@ -20,7 +21,7 @@ nsNullPrincipalURI::nsNullPrincipalURI(const nsCString &aSpec)
int32_t dividerPosition = aSpec.FindChar(':');
NS_ASSERTION(dividerPosition != -1, "Malformed URI!");
int32_t n = aSpec.Left(mScheme, dividerPosition);
mozilla::DebugOnly<int32_t> n = aSpec.Left(mScheme, dividerPosition);
NS_ASSERTION(n == dividerPosition, "Storing the scheme failed!");
int32_t count = aSpec.Length() - dividerPosition - 1;

View File

@ -71,8 +71,6 @@
using namespace mozilla;
using namespace mozilla::dom;
static NS_DEFINE_CID(kZipReaderCID, NS_ZIPREADER_CID);
nsIIOService *nsScriptSecurityManager::sIOService = nullptr;
nsIStringBundle *nsScriptSecurityManager::sStrBundle = nullptr;
JSRuntime *nsScriptSecurityManager::sRuntime = 0;

View File

@ -79,8 +79,6 @@
using mozilla::dom::EncodingUtils;
static NS_DEFINE_CID(kUnicharUtilCID, NS_UNICHARUTIL_CID);
NS_IMPL_CYCLE_COLLECTING_ADDREF(mozHunspell)
NS_IMPL_CYCLE_COLLECTING_RELEASE(mozHunspell)

View File

@ -24,3 +24,5 @@ LOCAL_INCLUDES += [
'/content/base/src',
'/editor/libeditor/base',
]
FAIL_ON_WARNINGS = True

View File

@ -21,8 +21,6 @@
#define MOZ_PERSONAL_DICT_NAME "persdict.dat"
const int kMaxWordLen=256;
/**
* This is the most braindead implementation of a personal dictionary possible.
* There is not much complexity needed, though. It could be made much faster,
@ -34,7 +32,6 @@ const int kMaxWordLen=256;
* Implement the suggestion record.
*/
NS_IMPL_CYCLE_COLLECTING_ADDREF(mozPersonalDictionary)
NS_IMPL_CYCLE_COLLECTING_RELEASE(mozPersonalDictionary)
@ -390,4 +387,3 @@ NS_IMETHODIMP mozPersonalDictionary::Observe(nsISupports *aSubject, const char *
return NS_OK;
}

View File

@ -33,3 +33,5 @@ UNIFIED_SOURCES += [
]
FINAL_LIBRARY = 'universalchardet'
FAIL_ON_WARNINGS = True

View File

@ -16,3 +16,5 @@ FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../base',
]
FAIL_ON_WARNINGS = True

View File

@ -15,9 +15,6 @@
#include "nsISupports.h"
#include "nsCOMPtr.h"
static NS_DEFINE_CID(kUniversalDetectorCID, NS_UNIVERSAL_DETECTOR_CID);
static NS_DEFINE_CID(kUniversalStringDetectorCID, NS_UNIVERSAL_STRING_DETECTOR_CID);
//---------------------------------------------------------------------
nsXPCOMDetector:: nsXPCOMDetector(uint32_t aLanguageFilter)
: nsUniversalDetector(aLanguageFilter)

View File

@ -100,3 +100,4 @@ LOCAL_INCLUDES += [
'../../content/base/src',
]
FAIL_ON_WARNINGS = True

View File

@ -45,10 +45,6 @@ NS_IMPL_ISUPPORTS(nsParserUtils,
nsIScriptableUnescapeHTML,
nsIParserUtils)
static NS_DEFINE_CID(kCParserCID, NS_PARSER_CID);
NS_IMETHODIMP
nsParserUtils::ConvertToPlainText(const nsAString& aFromStr,
uint32_t aFlags,

View File

@ -39,10 +39,6 @@
static char _progname[1024] = "huh?";
static unsigned int _gdb_sleep_duration = 300;
// NB: keep me up to date with the same variable in
// ipc/chromium/chrome/common/ipc_channel_posix.cc
static const int kClientChannelFd = 3;
#if defined(LINUX) && defined(DEBUG) && \
(defined(__i386) || defined(__x86_64) || defined(PPC))
#define CRAWL_STACK_ON_SIGSEGV
@ -54,6 +50,10 @@ static const int kClientChannelFd = 3;
#include "nsISupportsUtils.h"
#include "nsStackWalk.h"
// NB: keep me up to date with the same variable in
// ipc/chromium/chrome/common/ipc_channel_posix.cc
static const int kClientChannelFd = 3;
extern "C" {
static void PrintStackFrame(void *aPC, void *aSP, void *aClosure)