Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit d8f5fd4

Browse files
committed
bootstat: avoid vector<const T>
A container of const T uses std::allocator<const T>, which was an undocumented libc++ extension that has been removed. See llvm/llvm-project#96319. Bug: 349681543 Test: m bootstat Change-Id: Id338f439aa4caf8c9f3c6fc15faef19b1edc4368
1 parent 8d9b33d commit d8f5fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstat/bootstat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ int32_t BootReasonStrToEnum(const std::string& boot_reason) {
499499
}
500500

501501
// Canonical list of supported primary reboot reasons.
502-
const std::vector<const std::string> knownReasons = {
502+
const std::vector<std::string> knownReasons = {
503503
// clang-format off
504504
// kernel
505505
"watchdog",

0 commit comments

Comments
 (0)