mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
TestDriver: Fix old-style-cast warning in C++ mode
A C-style cast was added by commit 3f6ff4b5db (create_test_sourcelist:
add test driver option to run all tests, 2021-04-27, v3.21.0-rc1~257^2).
Use our `CM_CAST` macro to adapt based on the language.
This commit is contained in:
committed by
Brad King
parent
d1a7e78c4f
commit
ba54092842
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user