From 611431decd9a5b7dd456355fe763b2dee9c2a1a1 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 26 Feb 2018 20:36:16 +0000 Subject: Fix -Wunused-variable warning if building with V8 snapshots disabled. Bug: chromium:803591 Change-Id: I4dbbe52ca296e7232ad3eb225a2bdd84dcd0fa81 Reviewed-on: https://pdfium-review.googlesource.com/27730 Commit-Queue: Nico Weber Commit-Queue: dsinclair Reviewed-by: dsinclair --- testing/unit_test_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/unit_test_main.cpp b/testing/unit_test_main.cpp index d0c4dfda9f..88855c8e7f 100644 --- a/testing/unit_test_main.cpp +++ b/testing/unit_test_main.cpp @@ -64,9 +64,9 @@ int main(int argc, char** argv) { #ifdef PDF_ENABLE_V8 std::unique_ptr platform; +#ifdef V8_USE_EXTERNAL_STARTUP_DATA static v8::StartupData* natives = new v8::StartupData; static v8::StartupData* snapshot = new v8::StartupData; -#ifdef V8_USE_EXTERNAL_STARTUP_DATA platform = InitializeV8ForPDFiumWithStartupData(argv[0], std::string(), natives, snapshot); #else // V8_USE_EXTERNAL_STARTUP_DATA -- cgit v1.2.3