Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc

Issue 1995573004: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
index ac6de8b5fe749a37ce94cdf209516ea418833246..012a7f678b95bda4e0aff66aa38a11deb5b216d5 100644
--- a/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
@@ -118,7 +118,11 @@ ResultExpr CrosArmGpuBrokerProcessPolicy::EvaluateSyscall(int sysno) const {
} // namespace
CrosArmGpuProcessPolicy::CrosArmGpuProcessPolicy(bool allow_shmat)
- : allow_shmat_(allow_shmat) {}
+#if defined(__arm__) || defined(__aarch64__)
+ : allow_shmat_(allow_shmat)
+#endif
+{
+}
CrosArmGpuProcessPolicy::~CrosArmGpuProcessPolicy() {}

Powered by Google App Engine
This is Rietveld 408576698