commit | f40762d84a5969b7e90ae190eb91d6ef06599cdf | [log] [tgz] |
---|---|---|
author | Prashanth Swaminathan <prashanthsw@google.com> | Tue Feb 02 19:16:45 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 03 17:07:59 2021 +0000 |
tree | 1d776d06ec18029ebb6ae704e5c2b517bea3f9ba | |
parent | fe5b4a75228c9b740e7332a8f417d7efa9bb54de [diff] |
pw_bytes: Fix static analysis complaint in test Change-Id: Id8085cd913d263413ac911ec9d92d188e2f3169e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/31620 Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Prashanth Swaminathan <prashanthsw@google.com>
diff --git a/pw_bytes/endian_test.cc b/pw_bytes/endian_test.cc index 08ae244..7b49ee7 100644 --- a/pw_bytes/endian_test.cc +++ b/pw_bytes/endian_test.cc
@@ -264,7 +264,7 @@ TEST(ReadInOrder, BoundsChecking_Ok) { constexpr auto buffer = Array<1, 2, 3, 4>(); - uint16_t value; + uint16_t value = 0; EXPECT_TRUE(ReadInOrder(std::endian::little, buffer, value)); EXPECT_EQ(0x0201, value); }