]> Creatis software - clitk.git/blobdiff - common/clitkHndImageIO.cxx
Remove warnings
[clitk.git] / common / clitkHndImageIO.cxx
index 1e387a79e436dcdeb9517231dfa5cd35a8690ab0..44486c245816421cabee3cfb4e989c31149fd9c2 100644 (file)
@@ -3,7 +3,7 @@
 
   Authors belong to:
   - University of LYON              http://www.universite-lyon.fr/
-  - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
 
   This software is distributed WITHOUT ANY WARRANTY; without even
@@ -14,7 +14,7 @@
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
 
 // std include
 #include <stdio.h>
@@ -132,7 +132,6 @@ void clitk::HndImageIO::Read(void * buffer)
   uint32_t* buf = (uint32_t*)buffer;
   unsigned char *pt_lut;
   uint32_t a;
-  float b;
   unsigned char v;
   int lut_idx, lut_off;
   size_t num_read;
@@ -155,13 +154,11 @@ void clitk::HndImageIO::Read(void * buffer)
   for (i = 0; i < GetDimensions(0); i++) {
     fread (&a, sizeof(uint32_t), 1, fp);
     buf[i] = a;
-    b = a;
   }
 
   /* Read first pixel of second row */
   fread (&a, sizeof(uint32_t), 1, fp);
   buf[i++] = a;
-  b = a;
 
   /* Decompress the rest */
   lut_idx = 0;
@@ -211,7 +208,6 @@ void clitk::HndImageIO::Read(void * buffer)
     }
 
     buf[i] = r21 + r12 + diff - r11;
-    b = buf[i];
     i++;
   }