[SWDEV-499995] ESMI Build/Compiler warnings messages (#105)

* [SWDEV-499995] ESMI Build/Compiler warnings messages

Signed-off-by: Deepak Mewar <deepak.mewar@amd.com>
このコミットが含まれているのは:
Mewar, Deepak authored and GitHub committed 2025-02-18 16:20:28 -06:00
1 親 1b9841450a
コミット 2c591ffcc1
3ファイル変更
+6 -6

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -38,11 +38,11 @@
namespace amd {
namespace smi {
void closedir(DIR* /*ptr*/) {}
std::string AMDSmiDrm::find_file_in_folder(const std::string& folder,
const std::string& regex) {
std::string file_name;
// TODO: The closedir function has some non-standard attributes that are being ignored here
// which is causing a warning to be thrown
using dir_ptr = std::unique_ptr<DIR, decltype(&closedir)>;
struct dirent *dir = nullptr;