From 31ef076d4b6dbbd0a6efed1b5ff719a7f30d8895 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 26 Sep 2007 08:07:42 +0000 Subject: [PATCH] Avoid warning at runtime --- Example/PrintFile.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Example/PrintFile.cxx b/Example/PrintFile.cxx index 84d09603..1da00db2 100644 --- a/Example/PrintFile.cxx +++ b/Example/PrintFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintFile.cxx,v $ Language: C++ - Date: $Date: 2007/09/12 12:36:50 $ - Version: $Revision: 1.85 $ + Date: $Date: 2007/09/26 08:07:42 $ + Version: $Revision: 1.86 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -194,7 +194,7 @@ int main(int argc, char *argv[]) uint16_t *elemsToForceLoad = am->ArgMgrGetXInt16Enum("forceload", &forceLoadNb); - int nbP; + int nbP =0; uint16_t *FourthDimLoc; if ( am->ArgMgrDefined("4DLoc") ) { @@ -270,9 +270,11 @@ errno = 0; f->Delete(); return 0; } + if (nbP == 1) f->SetFourthDimensionLocation(FourthDimLoc[0],FourthDimLoc[1]); + GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f); fh->SetPrintLevel( level ); -- 2.45.1