summaryrefslogtreecommitdiff
path: root/include/ibm
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-07 20:25:51 +0300
committerEd Tanous <ed@tanous.net>2022-01-12 22:00:37 +0300
commit46ff87bade273c75f71f940c5770d30e7a29595b (patch)
treee9c093a73a4cffda570a14e84908e029010a2d2b /include/ibm
parentecd6a3a20ab128ae9d3e356d6250695800dc13be (diff)
downloadbmcweb-46ff87bade273c75f71f940c5770d30e7a29595b.tar.xz
Enable reinterpre_cast checks
We seem to use reinterpret cast in a few cases unfortunately. For the moment, simply ignore most of them, and make it so we don't get more. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ic860cf922576b18cdc8d51d6132f5a9cbcc1d9dc
Diffstat (limited to 'include/ibm')
-rw-r--r--include/ibm/locks.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp
index 8e04b8424b..4fbb50360d 100644
--- a/include/ibm/locks.hpp
+++ b/include/ibm/locks.hpp
@@ -530,7 +530,9 @@ inline bool Lock::isConflictRequest(const LockRequests& refLockRequestStructure)
inline bool Lock::checkByte(uint64_t resourceId1, uint64_t resourceId2,
uint32_t position)
{
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
uint8_t* p = reinterpret_cast<uint8_t*>(&resourceId1);
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
uint8_t* q = reinterpret_cast<uint8_t*>(&resourceId2);
BMCWEB_LOG_DEBUG << "Comparing bytes " << std::to_string(p[position]) << ","