diff options
author | Brad King <brad.king@kitware.com> | 2011-08-04 12:29:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-08-04 12:30:05 (GMT) |
commit | 5f0eba49f2978b65b39b0c2bb9079be53c5c7d47 (patch) | |
tree | add20915f8f5dabf192e81a15283d473024147d3 /Source/kwsys/SystemTools.cxx | |
parent | f31def8c6225bc1cbb716c1d3e0fdc6b71afa55c (diff) | |
download | CMake-5f0eba49f2978b65b39b0c2bb9079be53c5c7d47.zip CMake-5f0eba49f2978b65b39b0c2bb9079be53c5c7d47.tar.gz CMake-5f0eba49f2978b65b39b0c2bb9079be53c5c7d47.tar.bz2 |
KWSys: Avoid conversion warning in SystemTools::GetTime
Convert struct timeval members to double explicitly to avoid a GCC
warning with -Wconversion.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index d1f1591..c4aff4a 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -296,7 +296,7 @@ double SystemTools::GetTime(void) #else struct timeval t; gettimeofday(&t, 0); - return 1.0*t.tv_sec + 0.000001*t.tv_usec; + return 1.0*double(t.tv_sec) + 0.000001*double(t.tv_usec); #endif } |