mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1032644 - Fix some -Wunused warnings in non-unified OS X build. r=ehsan
This commit is contained in:
parent
afdeb7bf07
commit
e56956aa2f
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
||||
|
@ -24,3 +24,5 @@ LOCAL_INCLUDES += [
|
||||
'/content/base/src',
|
||||
'/editor/libeditor/base',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -33,3 +33,5 @@ UNIFIED_SOURCES += [
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'universalchardet'
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
@ -16,3 +16,5 @@ FINAL_LIBRARY = 'xul'
|
||||
LOCAL_INCLUDES += [
|
||||
'../base',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
@ -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)
|
||||
|
@ -100,3 +100,4 @@ LOCAL_INCLUDES += [
|
||||
'../../content/base/src',
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user