[Cmake-commits] [cmake-commits] king committed cmCTestLaunch.cxx 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Feb 11 11:57:26 EST 2009


Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv9261/Source/CTest

Modified Files:
	cmCTestLaunch.cxx 
Log Message:
COMP: Do not use modern empty init list syntax

cmCTestLaunch first used an empty initializer list to zero-initialize a
buffer, but this is not supported on older compilers.  Instead we avoid
the need for initialization altogether.


Index: cmCTestLaunch.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestLaunch.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** cmCTestLaunch.cxx	11 Feb 2009 16:31:25 -0000	1.1
--- cmCTestLaunch.cxx	11 Feb 2009 16:57:24 -0000	1.2
***************
*** 199,203 ****
    // We hash the input command working dir and command line to obtain
    // a repeatable and (probably) unique name for log files.
!   char hash[33] = {};
    cmsysMD5* md5 = cmsysMD5_New();
    cmsysMD5_Initialize(md5);
--- 199,203 ----
    // We hash the input command working dir and command line to obtain
    // a repeatable and (probably) unique name for log files.
!   char hash[32];
    cmsysMD5* md5 = cmsysMD5_New();
    cmsysMD5_Initialize(md5);
***************
*** 210,214 ****
    cmsysMD5_FinalizeHex(md5, hash);
    cmsysMD5_Delete(md5);
!   this->LogHash = hash;
  
    // We store stdout and stderr in temporary log files.
--- 210,214 ----
    cmsysMD5_FinalizeHex(md5, hash);
    cmsysMD5_Delete(md5);
!   this->LogHash.assign(hash, 32);
  
    // We store stdout and stderr in temporary log files.



More information about the Cmake-commits mailing list