1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 19:43:23 +08:00

Source: fix some -Wunused-macros warnings

- deleted one unused define
- moved define into #if block where it is used
This commit is contained in:
Sean McBride
2021-10-20 16:50:28 -04:00
parent 5257d9e71a
commit 319944b3d2
2 changed files with 1 additions and 3 deletions

View File

@@ -48,8 +48,6 @@
# include <unistd.h>
#endif
#define CTEST_INITIAL_CMAKE_OUTPUT_FILE_NAME "CTestInitialCMakeOutput.log"
cmCTestScriptHandler::cmCTestScriptHandler() = default;
void cmCTestScriptHandler::Initialize()

View File

@@ -5,7 +5,6 @@
#include <cerrno>
#include <cstring>
#define WINMSG_BUF_LEN (1024)
cmFileLockResult cmFileLockResult::MakeOk()
{
return { OK, 0 };
@@ -54,6 +53,7 @@ std::string cmFileLockResult::GetOutputMessage() const
case SYSTEM:
#if defined(_WIN32)
{
# define WINMSG_BUF_LEN (1024)
char winmsg[WINMSG_BUF_LEN];
DWORD flags = FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS;
if (FormatMessageA(flags, NULL, this->ErrorValue,