Use specific misc-include-cleaner statement
There are a few places that which clang-tidy seems reporting
false-positives and which can be suppressed either via using
`modernize-deprecated-headers` or more targeted inline
`misc-include-cleaner` statement.
Tested: Compiles
Change-Id: Ib609adbe8619f4b9a84e08388eea1e7cee58aa54
Signed-off-by: Myung Bae <myungbae@us.ibm.com>
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index cb391bc..fdc283b 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -21,8 +21,6 @@
#include "utils/json_utils.hpp"
#include "utils/time_utils.hpp"
-// NOLINTNEXTLINE(modernize-deprecated-headers)
-#include <stdlib.h>
#include <systemd/sd-bus.h>
#include <boost/asio/error.hpp>
@@ -140,6 +138,7 @@
std::array<char, 18> dirTemplate = {'/', 't', 'm', 'p', '/', 'C',
'e', 'r', 't', 's', '.', 'X',
'X', 'X', 'X', 'X', 'X', '\0'};
+ // NOLINTNEXTLINE(misc-include-cleaner)
char* tempDirectory = mkdtemp(dirTemplate.data());
if (tempDirectory != nullptr)
{