diff options
author | Nico Weber <thakis@chromium.org> | 2018-02-26 20:36:16 +0000 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2018-02-26 20:36:16 +0000 |
commit | 611431decd9a5b7dd456355fe763b2dee9c2a1a1 (patch) | |
tree | 2b7605a2431587560bc047598f90d0a1b505c837 | |
parent | 9141116074f9209f617d9607e747c8947c952c46 (diff) | |
download | pdfium-611431decd9a5b7dd456355fe763b2dee9c2a1a1.tar.xz |
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 <thakis@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
-rw-r--r-- | testing/unit_test_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<v8::Platform> 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 |