From 5a8a8063c387f18f9f090d31cf385d65b048254b Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Thu, 6 Mar 2014 01:11:54 +0000 Subject: Make kAllowedToAccessOnNonjoinableThread debug-only. This is only used in !NDEBUG builds, and making the variable only available there makes it harder to break -Wunused-const-variable builds with custom traits. Follow-up to r255159. BUG=349521,307668 R=fischman@chromium.org Review URL: https://codereview.chromium.org/187903007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255194 0039d316-1c4b-4281-b951-d872f2087c98 --- base/android/build_info.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'base/android') diff --git a/base/android/build_info.cc b/base/android/build_info.cc index 9f7361d..a1755af 100644 --- a/base/android/build_info.cc +++ b/base/android/build_info.cc @@ -37,7 +37,9 @@ struct BuildInfoSingletonTraits { } static const bool kRegisterAtExit = false; +#ifndef NDEBUG static const bool kAllowedToAccessOnNonjoinableThread = true; +#endif }; BuildInfo::BuildInfo(JNIEnv* env) -- cgit v1.1