phosphor-ipmi-flash: Fix all C++ warnings
Change-Id: I89236b2dab88ca725e269bb8f5b2cbfd271e807a
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/bmc/firmware-handler/test/firmware_unittest.hpp b/bmc/firmware-handler/test/firmware_unittest.hpp
index 0d18bda..53fb58c 100644
--- a/bmc/firmware-handler/test/firmware_unittest.hpp
+++ b/bmc/firmware-handler/test/firmware_unittest.hpp
@@ -188,8 +188,8 @@
TriggerMock* updateMockPtr;
std::uint16_t session = 1;
- std::uint16_t flags =
- blobs::OpenFlags::write | FirmwareFlags::UpdateFlags::ipmi;
+ std::uint16_t flags = static_cast<std::uint16_t>(blobs::OpenFlags::write) |
+ FirmwareFlags::UpdateFlags::ipmi;
blobs::BlobMeta expectedIdleMeta = {0xff00, 0, {}};