summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--include/openbmc_dbus_rest.hpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 71e80a4eed..c7963c089e 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -26,6 +26,7 @@ bugprone-misplaced-operator-in-strlen-in-alloc,
bugprone-misplaced-pointer-arithmetic-in-alloc,
bugprone-misplaced-widening-cast,
bugprone-move-forwarding-reference,
+bugprone-multi-level-implicit-pointer-conversion,
bugprone-multiple-statement-macro,
bugprone-narrowing-conversions,
bugprone-no-escape,
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index e801a3291c..dd1dac37d9 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -951,7 +951,10 @@ int readMessageItem(const std::string& typeCode, sdbusplus::message_t& m,
nlohmann::json& data)
{
T value;
-
+ // When T == char*, this warning fires. Unclear how to resolve
+ // Given that sd-bus takes a void pointer to a char*, and that's
+ // Not something we can fix.
+ // NOLINTNEXTLINE(bugprone-multi-level-implicit-pointer-conversion)
int r = sd_bus_message_read_basic(m.get(), typeCode.front(), &value);
if (r < 0)
{