From ebd08ff48aec7a04c4b96fad2124872a6c290939 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 21 Sep 2005 13:05:40 +0000 Subject: [PATCH] Should avoid warnings --- Example/TestCopyDicom.cxx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Example/TestCopyDicom.cxx b/Example/TestCopyDicom.cxx index 3c4a579a..e292ade4 100644 --- a/Example/TestCopyDicom.cxx +++ b/Example/TestCopyDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestCopyDicom.cxx,v $ Language: C++ - Date: $Date: 2005/09/07 08:33:29 $ - Version: $Revision: 1.27 $ + Date: $Date: 2005/09/21 13:05:40 $ + Version: $Revision: 1.28 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -73,10 +73,12 @@ int main(int argc, char *argv[]) if( FileExists( output.c_str() ) ) { - std::cerr << "Don't try to cheat, I am removing the file anyway" << std::endl; + std::cerr << "Don't try to cheat, I am removing the file anyway" + << std::endl; if( !RemoveFile( output.c_str() ) ) { - std::cerr << "Ouch, the file exist, but I cannot remove it" << std::endl; + std::cerr << "Ouch, the file exist, but I cannot remove it" + << std::endl; return 1; } } @@ -92,12 +94,12 @@ int main(int argc, char *argv[]) copy->SetFileName( output ); copy->Load(); - size_t dataSize; + //size_t dataSize; uint8_t *imageData; - dataSize = original->GetImageDataSize(); + //dataSize = original->GetImageDataSize();// just an accesor :useless here imageData = original->GetImageData(); (void)imageData; // no enough to avoid warning on 'Golgot' - (void)dataSize; + //(void)dataSize; //First of all copy the header field by field @@ -132,7 +134,8 @@ int main(int argc, char *argv[]) //copy->SetImageData(imageData, dataSize); std::cout << "--- Copy ----------------------" << std::endl; - std::cout <GetFile()->Print(); std::cout << "--- ---- ----------------------" << std::endl; -- 2.48.1