From 32ff836e2adcfefd9ff8f7bd24d20da30c42c62f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 14 Jul 2021 16:47:16 -0400 Subject: [PATCH 1/2] TestDriver: suppress deprecated header lints for time.h Similar to the other includes, this one should be suppressed as well. --- Templates/TestDriver.cxx.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 61134172ed..845f799ec6 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -2,7 +2,7 @@ #include /* NOLINT */ #include /* NOLINT */ #include /* NOLINT */ -#include +#include /* NOLINT */ #if defined(_MSC_VER) #pragma warning(disable : 4996) /* deprecation */ From 0bb3d457cbc57246c32a4d51d55390c40396043e Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 14 Jul 2021 19:53:54 -0400 Subject: [PATCH 2/2] TestDriver: use `CM_NULL` to avoid lints about `nullptr` usage --- Templates/TestDriver.cxx.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 845f799ec6..6ced8001ca 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -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) {