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:01:59 (GMT) |
commit | 7518fc0c313277c889c7eb77f1e00406b547979e (patch) | |
tree | e62b26f0dc2cdb617ad9a0a577de5f417d3b7ee5 | |
parent | d1a7e78c4fb4bc92e6fb6b9ba2edb839047fb66c (diff) | |
parent | ba54092842f8eb712f57448c33763cb56d8931da (diff) | |
download | CMake-7518fc0c313277c889c7eb77f1e00406b547979e.zip CMake-7518fc0c313277c889c7eb77f1e00406b547979e.tar.gz CMake-7518fc0c313277c889c7eb77f1e00406b547979e.tar.bz2 |
Merge topic 'testdriver-old-cast-warning' into release-3.21
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); } } |