diff options
author | joel@chromium.org <joel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 00:50:48 +0000 |
---|---|---|
committer | joel@chromium.org <joel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 00:50:48 +0000 |
commit | 4f03cbccc4c09db3f053b74393961e8728bceeec (patch) | |
tree | 2f921124da535db1c3289fafccd928cba8e97310 | |
parent | 5abbf4aa3f7f85fc16569f45324779ecddac51a7 (diff) | |
download | chromium_src-4f03cbccc4c09db3f053b74393961e8728bceeec.zip chromium_src-4f03cbccc4c09db3f053b74393961e8728bceeec.tar.gz chromium_src-4f03cbccc4c09db3f053b74393961e8728bceeec.tar.bz2 |
linux: unused variable in ARM build
The seccomp sandbox is conditional on ARCH_CPU_X86_FAMILY. When
building for !ARCH_CPU_X86_FAMILY the variable g_proc_fd is
unused, leading to a build error when -Werror is turned on.
Review URL: http://codereview.chromium.org/397040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32453 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/zygote_main_linux.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/zygote_main_linux.cc b/chrome/browser/zygote_main_linux.cc index 82740b8..3b9c6ef 100644 --- a/chrome/browser/zygote_main_linux.cc +++ b/chrome/browser/zygote_main_linux.cc @@ -53,7 +53,10 @@ static const int kBrowserDescriptor = 3; static const int kMagicSandboxIPCDescriptor = 5; static const int kZygoteIdDescriptor = 7; static bool g_suid_sandbox_active = false; +#if defined(ARCH_CPU_X86_FAMILY) +// |g_proc_fd| is used only by the seccomp sandbox. static int g_proc_fd = -1; +#endif // This is the object which implements the zygote. The ZygoteMain function, // which is called from ChromeMain, at the the bottom and simple constructs one |