Bug 844707 - Fix warnings in debug build, r=echou

This commit is contained in:
Gina Yeh 2013-02-25 15:04:38 +08:00
parent 16e0bf8187
commit ebe9a6d53b
2 changed files with 3 additions and 5 deletions

View File

@ -122,7 +122,7 @@ BluetoothScoManager::Init()
mSocketStatus = GetConnectionStatus();
sScoObserver = new BluetoothScoManagerObserver();
if (sScoObserver->Init()) {
if (!sScoObserver->Init()) {
NS_WARNING("Cannot set up SCO observers!");
}
return true;

View File

@ -2466,11 +2466,9 @@ BluetoothDBusService::Connect(const nsAString& aDeviceAddress,
errorStr.AssignLiteral("BluetoothOppManager has connected/is connecting!");
DispatchBluetoothReply(aRunnable, v, errorStr);
}
} else {
NS_WARNING("Unknown Profile");
}
#ifdef DEBUG
NS_WARNING("Unknown Profile");
#endif
}
void