From d5463f404c83bf7f3b9b2381d5c2dfeafd8f722e Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 19 Nov 2002 09:01:37 -0500 Subject: [PATCH] fix in warning --- Source/cmSystemTools.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 18a6211ae..1b0cbc519 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1248,13 +1248,15 @@ void cmSystemTools::cmCopyFile(const char* source, { cmSystemTools::Error("CopyFile failed to copy files!"); } - - if (statSource.st_size != statDestination.st_size) + else { - cmOStringStream msg; - msg << "CopyFile failed to copy files (sizes differ, source: " - << statSource.st_size << " , dest: " << statDestination.st_size; - cmSystemTools::Error(msg.str().c_str()); + if (statSource.st_size != statDestination.st_size) + { + cmOStringStream msg; + msg << "CopyFile failed to copy files (sizes differ, source: " + << statSource.st_size << " , dest: " << statDestination.st_size; + cmSystemTools::Error(msg.str().c_str()); + } } }