From: malaterre Date: Wed, 22 Sep 2004 01:01:36 +0000 (+0000) Subject: FIX: Some unused var, just (void)'ing them X-Git-Tag: Version0.6.bp~190 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=987b9d86307ffd84dd676ccf5a504a3133308c44;p=gdcm.git FIX: Some unused var, just (void)'ing them --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 7fedf71d..bbbcd77f 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2004/09/21 11:17:42 $ - Version: $Revision: 1.84 $ + Date: $Date: 2004/09/22 01:01:36 $ + Version: $Revision: 1.85 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1397,6 +1397,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set, // hierarchy and the Key is simply of the form ( group, elem )... if (gdcmDocument* dummy = dynamic_cast< gdcmDocument* > ( set ) ) { + (void)dummy; newValEntry->SetKey( newValEntry->GetKey() ); } // ...but when "set" is a gdcmSQItem, we are inserting this new @@ -1437,6 +1438,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set, // form ( group, elem )... if (gdcmDocument* dummy = dynamic_cast< gdcmDocument* > ( set ) ) { + (void)dummy; newBinEntry->SetKey( newBinEntry->GetKey() ); } // but when "this" is a SQItem, we are inserting this new @@ -1501,6 +1503,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set, // level of one: if (gdcmDocument* dummy = dynamic_cast< gdcmDocument* > ( set ) ) { + (void)dummy; newSeqEntry->SetDepthLevel( 1 ); newSeqEntry->SetKey( newSeqEntry->GetKey() ); } diff --git a/src/gdcmElementSet.cxx b/src/gdcmElementSet.cxx index 88547c87..28f1d01f 100644 --- a/src/gdcmElementSet.cxx +++ b/src/gdcmElementSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmElementSet.cxx,v $ Language: C++ - Date: $Date: 2004/09/17 13:11:16 $ - Version: $Revision: 1.20 $ + Date: $Date: 2004/09/22 01:01:36 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -32,6 +32,7 @@ gdcmElementSet::gdcmElementSet(int depthLevel) : gdcmDocEntrySet() { + (void)depthLevel; } /** @@ -71,6 +72,7 @@ void gdcmElementSet::Print(std::ostream & os) entry->Print(os); if ( gdcmSeqEntry* seqEntry = dynamic_cast(entry) ) { + (void)seqEntry; // Avoid the newline for a sequence: continue; }