summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-10-20 20:50:28 (GMT)
committerSean McBride <sean@rogue-research.com>2021-10-25 16:27:08 (GMT)
commit319944b3d289871c4cd21ee11aba1f5785d4b626 (patch)
treea79435b7f9d342bb3c8b5df6ed3105bbb783034f
parent5257d9e71a2aa4ba5f5d71cf7e930ff17bbc8b39 (diff)
downloadCMake-319944b3d289871c4cd21ee11aba1f5785d4b626.zip
CMake-319944b3d289871c4cd21ee11aba1f5785d4b626.tar.gz
CMake-319944b3d289871c4cd21ee11aba1f5785d4b626.tar.bz2
Source: fix some -Wunused-macros warnings
- deleted one unused define - moved define into #if block where it is used
-rw-r--r--Source/CTest/cmCTestScriptHandler.cxx2
-rw-r--r--Source/cmFileLockResult.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx
index f685f66..cd23ca8 100644
--- a/Source/CTest/cmCTestScriptHandler.cxx
+++ b/Source/CTest/cmCTestScriptHandler.cxx
@@ -48,8 +48,6 @@
# include <unistd.h>
#endif
-#define CTEST_INITIAL_CMAKE_OUTPUT_FILE_NAME "CTestInitialCMakeOutput.log"
-
cmCTestScriptHandler::cmCTestScriptHandler() = default;
void cmCTestScriptHandler::Initialize()
diff --git a/Source/cmFileLockResult.cxx b/Source/cmFileLockResult.cxx
index 9d5a6c6..70b8cdb 100644
--- a/Source/cmFileLockResult.cxx
+++ b/Source/cmFileLockResult.cxx
@@ -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,