[Insight-developers] itkStimulateImageIO Compiler Warnings

Hans Johnson hans-johnson@uiowa.edu
Mon, 17 Mar 2003 16:39:10 -0600


itkStimulateImageIO Developers,

The 8 compilation of the itkStimulateImageIO.cxx file gives a few 
warnings that should be cleaned up.

The most important complaints is that you are byte swapping a chunk of 
memory that is defined to be constant to the routine.  This is due to 
casting a
const void * buffer
ByteSwap((const int *)buffer, NumberofComponents);


You will probably have to make some temporary location for doing the 
byte swapping.

Regards,
Hans

PS:  WOW!  We went from 3300+ compiler warnings to just 8 in less than 
one week!
-- 
===================================================================
Hans J. Johnson                              W294 GH
hans-johnson@uiowa.edu                       Dept. of Psychiatry
http://www.psychiatry.uiowa.edu/~hjohnson    The University of Iowa
(319) 353-8587                               Iowa City, IA 52242
===================================================================