From ebe9a6d53bc5f04d5fa61cc1df85c9ce7b39e704 Mon Sep 17 00:00:00 2001 From: Gina Yeh Date: Mon, 25 Feb 2013 15:04:38 +0800 Subject: [PATCH] Bug 844707 - Fix warnings in debug build, r=echou --- dom/bluetooth/BluetoothScoManager.cpp | 2 +- dom/bluetooth/linux/BluetoothDBusService.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dom/bluetooth/BluetoothScoManager.cpp b/dom/bluetooth/BluetoothScoManager.cpp index 1291f3ea5121..99fe043ec396 100644 --- a/dom/bluetooth/BluetoothScoManager.cpp +++ b/dom/bluetooth/BluetoothScoManager.cpp @@ -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; diff --git a/dom/bluetooth/linux/BluetoothDBusService.cpp b/dom/bluetooth/linux/BluetoothDBusService.cpp index cf5d050a2ee7..aa8938c1961b 100644 --- a/dom/bluetooth/linux/BluetoothDBusService.cpp +++ b/dom/bluetooth/linux/BluetoothDBusService.cpp @@ -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