From e652c9956e64f749736fea02ec5b78944705aac3 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 10 Dec 2023 17:02:02 -0600 Subject: [PATCH] address warnings --- include/platform/platform.hpp | 2 +- include/types/repertory.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/platform/platform.hpp b/include/platform/platform.hpp index a836c6f5..77b291fa 100644 --- a/include/platform/platform.hpp +++ b/include/platform/platform.hpp @@ -200,7 +200,7 @@ using WCHAR = wchar_t; #define GENERIC_EXECUTE (0x20000000L) #define GENERIC_ALL (0x10000000L) -#define INVALID_FILE_ATTRIBUTES ((DWORD)-1) +#define INVALID_FILE_ATTRIBUTES static_cast(-1) #define MAX_PATH 260 diff --git a/include/types/repertory.hpp b/include/types/repertory.hpp index 0a7ab769..f74f23d6 100644 --- a/include/types/repertory.hpp +++ b/include/types/repertory.hpp @@ -74,7 +74,7 @@ const std::string META_SOURCE = "source"; const std::string META_UID = "uid"; const std::string META_WRITTEN = "written"; -const std::vector META_USED_NAMES = { +const std::array META_USED_NAMES = { META_ACCESSED, META_ATTRIBUTES, META_BACKUP, META_CHANGED, META_CREATION, META_DIRECTORY, META_GID, META_KEY, META_MODE, META_MODIFIED, META_OSXFLAGS, META_PINNED,