Fix a bunch of warnings
using the list of warnings from here:
https://github.com/lefticus/cppbestpractices/blob/e73393f25a85f83fed7399d8b65cb117d00b2231/02-Use_the_Tools_Available.md#L100
Seems like a good place to start, and would improve things a bit
type-wise. This patchset attempts to correct all the issues in one
shot.
Tested:
It builds. Will test various subsystems that have been touched
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I588c26440e5a97f718a0f0ea74cc84107d53aa1e
diff --git a/redfish-core/lib/pcie.hpp b/redfish-core/lib/pcie.hpp
index ad61ff4..5b4f5c5 100644
--- a/redfish-core/lib/pcie.hpp
+++ b/redfish-core/lib/pcie.hpp
@@ -108,7 +108,7 @@
{
BMCWEB_LOG_DEBUG
<< "failed to get PCIe Device properties ec: "
- << static_cast<int>(ec.value()) << ": " << ec.message();
+ << ec.value() << ": " << ec.message();
if (ec.value() ==
boost::system::linux_error::bad_request_descriptor)
{
@@ -221,7 +221,7 @@
{
BMCWEB_LOG_DEBUG
<< "failed to get PCIe Device properties ec: "
- << static_cast<int>(ec.value()) << ": " << ec.message();
+ << ec.value() << ": " << ec.message();
if (ec.value() ==
boost::system::linux_error::bad_request_descriptor)
{