From 6a52098b62517c6bfcbeac7a5d18a28ff1b4420d Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 10 Aug 2021 12:05:10 -0400 Subject: [PATCH] widevine: Fix ARM compile error due to unused variable (see issue #3149) alloy_browser_main.cc:223:17: error: unused variable 'cus' [-Werror,-Wunused-variable] auto* const cus = g_browser_process->component_updater(); --- libcef/browser/alloy/alloy_browser_main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcef/browser/alloy/alloy_browser_main.cc b/libcef/browser/alloy/alloy_browser_main.cc index 47f647a8a..ba287bdb5 100644 --- a/libcef/browser/alloy/alloy_browser_main.cc +++ b/libcef/browser/alloy/alloy_browser_main.cc @@ -217,6 +217,8 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() { scheme::RegisterWebUIControllerFactory(); +#if BUILDFLAG(ENABLE_MEDIA_FOUNDATION_WIDEVINE_CDM) || \ + BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT) const base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); if (!command_line->HasSwitch(switches::kDisableComponentUpdate)) { @@ -230,6 +232,7 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() { RegisterWidevineCdmComponent(cus); #endif } +#endif return content::RESULT_CODE_NORMAL_EXIT; }