Bug 1010103: Suppress Linux Clang Warning on unused private field mEnabled in nsParentalControlsService.cpp r=jaws
authorArnaud Sourioux <six.dsn@gmail.com>
Mon, 22 Sep 2014 15:57:05 -0700
changeset 206572 5a12875dfd1ca830a60c7888fda0b8ecc165c48a
parent 206571 de9ba02af7a66ff03493d58de550769296329783
child 206573 d8b5efe0c3ddc17beebd1f648f7f0382d3b0aaf8
push id49453
push userdholbert@mozilla.com
push dateMon, 22 Sep 2014 22:58:04 +0000
treeherdermozilla-inbound@d8b5efe0c3dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1010103
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1010103: Suppress Linux Clang Warning on unused private field mEnabled in nsParentalControlsService.cpp r=jaws
toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp
--- a/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp
+++ b/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp
@@ -1,21 +1,24 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode:nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsParentalControlsService.h"
 #include "nsString.h"
 #include "nsIFile.h"
+#include "mozilla/unused.h"
 
 NS_IMPL_ISUPPORTS(nsParentalControlsService, nsIParentalControlsService)
 
-nsParentalControlsService::nsParentalControlsService()
+nsParentalControlsService::nsParentalControlsService() :
+  mEnabled(false)
 {
+  mozilla::unused << mEnabled;
 }
 
 nsParentalControlsService::~nsParentalControlsService()
 {
 }
 
 NS_IMETHODIMP
 nsParentalControlsService::GetParentalControlsEnabled(bool *aResult)