From fe2d1ed161ad70897d6aaeda19965ffb68f8bb66 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 7 Sep 2005 08:33:29 +0000 Subject: [PATCH] (Try to) avoid comp warning on 'Golgot' --- Example/TestCopyDicom.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Example/TestCopyDicom.cxx b/Example/TestCopyDicom.cxx index 2dd66ff3..3c4a579a 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/07/19 15:19:25 $ - Version: $Revision: 1.26 $ + Date: $Date: 2005/09/07 08:33:29 $ + Version: $Revision: 1.27 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -92,9 +92,11 @@ int main(int argc, char *argv[]) copy->SetFileName( output ); copy->Load(); - size_t dataSize = original->GetImageDataSize(); - uint8_t *imageData = original->GetImageData(); - (void)imageData; + size_t dataSize; + uint8_t *imageData; + dataSize = original->GetImageDataSize(); + imageData = original->GetImageData(); + (void)imageData; // no enough to avoid warning on 'Golgot' (void)dataSize; //First of all copy the header field by field -- 2.46.1