summaryrefslogtreecommitdiff
path: root/Templates
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-12-05 11:40:34 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2019-12-05 14:24:34 -0500
commit677097ac1d742d2ee1f5c932606326050a443e34 (patch)
tree0a482bc39e8a5ff361fa7f1b851e49200e955267 /Templates
parent1b4482f65dd41f21ec8abc0777b8dc1f0381bbd6 (diff)
downloadcmake-677097ac1d742d2ee1f5c932606326050a443e34.tar.gz
TestDriver: ignore strcpy call
clang-analyzer has a check for any use of `strcpy`. This usage is safe because it is allocated above using the length of the string.
Diffstat (limited to 'Templates')
-rw-r--r--Templates/TestDriver.cxx.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index ad8bfb0ac4..846a8285ec 100644
--- a/Templates/TestDriver.cxx.in
+++ b/Templates/TestDriver.cxx.in
@@ -54,7 +54,7 @@ static char* lowercase(const char* string)
if (new_string == CM_NULL) { /* NOLINT */
return CM_NULL; /* NOLINT */
}
- strcpy(new_string, string);
+ strcpy(new_string, string); /* NOLINT */
for (p = new_string; *p != 0; ++p) {
*p = CM_CAST(char, tolower(*p));
}