mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 23:19:58 -06:00
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
This commit is contained 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user