Răsfoiți Sursa

Merge topic 'TestDriver-time.h-lint' into release-3.21

0bb3d457cb TestDriver: use `CM_NULL` to avoid lints about `nullptr` usage
32ff836e2a TestDriver: suppress deprecated header lints for time.h

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6352
Brad King 4 ani în urmă
părinte
comite
9484e43731
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      Templates/TestDriver.cxx.in

+ 2 - 2
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) {