Initialize fragment_ and verbose_ fields in hiddenapi.cc
Bug: 179354495
Test: m out/soong/hiddenapi-stub-flags.csv
- make sure that no errors or warnings about missing information
are output when building fragments.
Merged-In: I9628dad3325c4626bdf997fac25b70898e6177b5
Change-Id: I9628dad3325c4626bdf997fac25b70898e6177b5
(cherry picked from commit 2d97dc11b72543ed2fbb7a03b063b8fd1b06fd3a)
diff --git a/tools/hiddenapi/hiddenapi.cc b/tools/hiddenapi/hiddenapi.cc
index c196660..7954fa4 100644
--- a/tools/hiddenapi/hiddenapi.cc
+++ b/tools/hiddenapi/hiddenapi.cc
@@ -1195,10 +1195,10 @@
// Whether the input is only a fragment of the whole bootclasspath and may
// not include a complete set of classes. That requires the tool to ignore missing
// classes and members.
- bool fragment_;
+ bool fragment_ = false;
// Whether to output all warnings, even when `fragment_` is set.
- bool verbose_;
+ bool verbose_ = false;
};
} // namespace hiddenapi