summaryrefslogtreecommitdiffstats
path: root/Source/cmFileLockResult.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-27 13:24:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-27 13:24:54 (GMT)
commita956be484783a991dbda3b14f676538d5f0b17bd (patch)
tree1c719f7e81e3d64916e1fcf219cdd6937a4c3935 /Source/cmFileLockResult.cxx
parentdb422ae0c7b3b871c067c9afcd2b0d8a43376ff6 (diff)
parent7e4e192ce2a579c22120150953df5adf26435eef (diff)
downloadCMake-a956be484783a991dbda3b14f676538d5f0b17bd.zip
CMake-a956be484783a991dbda3b14f676538d5f0b17bd.tar.gz
CMake-a956be484783a991dbda3b14f676538d5f0b17bd.tar.bz2
Merge topic 'warnings-cleanup'
7e4e192ce2 Source: fix clang-tidy modernize-redundant-void-arg warning 8d671dd94c Source: fix more -Wmissing-prototypes warnings 1cf14f8c03 Source: fix many -Wmissing-prototypes warnings by marking functions static 319944b3d2 Source: fix some -Wunused-macros warnings 5257d9e71a Source: fix only -Wshorten-64-to-32 warning with explicit cast Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6648
Diffstat (limited to 'Source/cmFileLockResult.cxx')
-rw-r--r--Source/cmFileLockResult.cxx2
1 files changed, 1 insertions, 1 deletions
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,