]> Creatis software - gdcm.git/commitdiff
FIX: Could not compile with warnings flags on
authormalaterre <malaterre>
Wed, 14 Jul 2004 14:08:05 +0000 (14:08 +0000)
committermalaterre <malaterre>
Wed, 14 Jul 2004 14:08:05 +0000 (14:08 +0000)
Testing/TestAllEntryVerify.cxx
Testing/TestAllReadCompareDicom.cxx
Testing/TestReadWriteReadCompare.cxx
src/gdcmDocument.cxx

index 978ee44d404ffa1ec3a2da39948d67bf3621b701..222d2f354fc149f184b085e9357383fcefcd4c44 100644 (file)
@@ -129,6 +129,8 @@ bool ReferenceFileParser::AddKeyValuePairToMap( string& key, string& value )
    if ( CurrentMapEntryValuesPtr->count(key) != 0 )
       return false;
    (*CurrentMapEntryValuesPtr)[key] = value;
+   
+   return true; //??
 }
 
 void ReferenceFileParser::Print()
@@ -203,6 +205,7 @@ bool ReferenceFileParser::Check()
       cout << Indent << "  OK" << endl;
    }
    cout << Indent << endl;
+   return true; //???
 }
 
 istream& ReferenceFileParser::eatwhite( istream& is )
@@ -429,6 +432,7 @@ bool ReferenceFileParser::Open( string& referenceFileName )
    }
 
    from.close();
+   return true; //??
 }
 
 void ReferenceFileParser::CleanUpLine( string& line )
@@ -577,6 +581,7 @@ bool ReferenceFileParser::SecondPassReferenceFile()
 
       ParseRegularLine( line );
    }
+   return true; //??
 }
 
 int TestAllEntryVerify(int argc, char* argv[]) 
index 46d51a6cace7f797e9a2709d0306c6758c16115e..e2474b959ff96f08cc634e17e4f86b5bd08352a9 100644 (file)
@@ -97,6 +97,7 @@ int TestAllReadCompareDicom(int argc, char* argv[])
       ////// Step 3a:
 
          int testedDataSize    = tested->GetImageDataSize();
+         (void)testedDataSize;
          void* testedImageData = tested->GetImageData(); // Kludge
          tested->WriteDcmExplVR( referenceFileName );
          std::cerr << "      Creating reference baseline file :" << std::endl
@@ -146,6 +147,7 @@ int TestAllReadCompareDicom(int argc, char* argv[])
       if (int res = memcmp(testedImageData, referenceImageData,
                            testedDataSize) != 0 )
       {
+         (void)res;
          std::cout << "        Pixel differ (as expanded in memory)."
                    << std::endl;
          delete tested;
index 939ab869b76107cad4116bf0cce3c781283f0942..d46bf2741f2e12ab0c1fc5e22bf7345ac306ed6d 100644 (file)
@@ -104,8 +104,9 @@ int TestReadWriteReadCompare(int argc, char* argv[])
        return 1;
     }
 
-    if (int res=memcmp(imageData, imageDataWritten, dataSize) !=0)
+    if (int res = memcmp(imageData, imageDataWritten, dataSize) !=0)
     {
+       (void)res;
        std::cout << std::endl
           << "        Pixel differ (as expanded in memory)." << std::endl;
        delete (char*)imageData;
index 40b240a56d2510b45e16df10af074c8255a0ede5..c0cff42f3c799aef15868cf75c5dafc4abd48338 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/07/06 09:50:52 $
-  Version:   $Revision: 1.47 $
+  Date:      $Date: 2004/07/14 14:08:05 $
+  Version:   $Revision: 1.48 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -2491,6 +2491,7 @@ bool gdcmDocument::ReadTag(uint16_t TestGroup, uint16_t TestElement)
 uint32_t gdcmDocument::ReadTagLength(uint16_t TestGroup, uint16_t TestElement)
 {
    long PositionOnEntry = ftell(fp);
+   (void)PositionOnEntry;
 
    if ( !ReadTag(TestGroup, TestElement) )
    {