summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-19 16:46:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-07-19 16:47:21 (GMT)
commitd86debe20a26aa603e15d2822c227ab2cd99aad7 (patch)
treebaa6e6fa2d2cc34575570f499c587025d2df9e8d
parent5966b958810e58d0657d92496c1c1a3dcc8e97cf (diff)
parent0bb3d457cbc57246c32a4d51d55390c40396043e (diff)
downloadCMake-d86debe20a26aa603e15d2822c227ab2cd99aad7.zip
CMake-d86debe20a26aa603e15d2822c227ab2cd99aad7.tar.gz
CMake-d86debe20a26aa603e15d2822c227ab2cd99aad7.tar.bz2
Merge topic 'TestDriver-time.h-lint'
0bb3d457cb TestDriver: use `CM_NULL` to avoid lints about `nullptr` usage 32ff836e2a TestDriver: suppress deprecated header lints for time.h Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6352
-rw-r--r--Templates/TestDriver.cxx.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index 6113417..6ced800 100644
--- a/Templates/TestDriver.cxx.in
+++ b/Templates/TestDriver.cxx.in
@@ -2,7 +2,7 @@
#include <stdio.h> /* NOLINT */
#include <stdlib.h> /* NOLINT */
#include <string.h> /* NOLINT */
-#include <time.h>
+#include <time.h> /* NOLINT */
#if defined(_MSC_VER)
#pragma warning(disable : 4996) /* deprecation */
@@ -122,7 +122,7 @@ int main(int ac, char* av[])
if (run_all == 1) {
clock_t t;
int status = 0;
- const char* status_message = NULL;
+ const char* status_message = CM_NULL;
printf("TAP version 13\n");
printf("1..%d\n", NumTests);
for (i = 0; i < NumTests; ++i) {