From: jpr Date: Wed, 7 Sep 2005 08:33:29 +0000 (+0000) Subject: (Try to) avoid comp warning on 'Golgot' X-Git-Tag: Version1.2.bp~107 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fe2d1ed161ad70897d6aaeda19965ffb68f8bb66;p=gdcm.git (Try to) avoid comp warning on 'Golgot' --- 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