diff options
author | Brad King <brad.king@kitware.com> | 2021-10-05 13:01:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-10-05 13:02:00 (GMT) |
commit | 95eaadb8524821610bfdce39bb50cd54b0a0b344 (patch) | |
tree | fdf0ddb266d2457f9b2ed2ddf28aa58d86d0867f | |
parent | a31447417f65ac37c4a4966fc7314c40b3fca91b (diff) | |
parent | ba54092842f8eb712f57448c33763cb56d8931da (diff) | |
download | CMake-95eaadb8524821610bfdce39bb50cd54b0a0b344.zip CMake-95eaadb8524821610bfdce39bb50cd54b0a0b344.tar.gz CMake-95eaadb8524821610bfdce39bb50cd54b0a0b344.tar.bz2 |
Merge topic 'testdriver-old-cast-warning'
ba54092842 TestDriver: Fix old-style-cast warning in C++ mode
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6590
-rw-r--r-- | Templates/TestDriver.cxx.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 6ced800..632bb80 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -138,7 +138,7 @@ int main(int ac, char* av[]) t = clock() - t; status_message = (status == -1) ? "not ok" : "ok"; { - double time_taken = ((double)t) / CLOCKS_PER_SEC; + double time_taken = CM_CAST(double, t) / CLOCKS_PER_SEC; printf("%s %d %s # %f\n", status_message, i + 1, name, time_taken); } } |