From: Simon Rit Date: Sun, 4 Dec 2011 14:04:46 +0000 (+0100) Subject: Removed warnings X-Git-Tag: v1.3.0~157 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e2b37672d5ee8eafc7b1ac075f4e70596349f0c3;p=clitk.git Removed warnings --- diff --git a/common/clitkDicomRTDoseIO.cxx b/common/clitkDicomRTDoseIO.cxx index da66a01..960cb1d 100644 --- a/common/clitkDicomRTDoseIO.cxx +++ b/common/clitkDicomRTDoseIO.cxx @@ -151,7 +151,7 @@ void clitk::DicomRTDoseIO::ReadImageInformation() while (1) { int len; gfov = (double*) realloc (gfov, (gfov_len + 1) * sizeof(double)); - rc = sscanf (gfov_str, "%g%n", &gfov[gfov_len], &len); + rc = sscanf (gfov_str, "%lf%n", &gfov[gfov_len], &len); if (rc != 1) { break; } diff --git a/itk/clitkSegmentationUtils.txx b/itk/clitkSegmentationUtils.txx index 76572b5..501c64f 100644 --- a/itk/clitkSegmentationUtils.txx +++ b/itk/clitkSegmentationUtils.txx @@ -1373,6 +1373,7 @@ namespace clitk { iter2.GoToBegin(); double dmin = 100000.0; typename ImageType::IndexType indexmin; + indexmin.Fill(0); while (!iter1.IsAtEnd()) { if (iter1.Get() != BG) { double d = iter2.Get(); diff --git a/segmentation/clitkExtractLymphStation_Supports.txx b/segmentation/clitkExtractLymphStation_Supports.txx index 430d6a9..a022392 100644 --- a/segmentation/clitkExtractLymphStation_Supports.txx +++ b/segmentation/clitkExtractLymphStation_Supports.txx @@ -111,7 +111,7 @@ Support_SI_Limit(const std::string station_limit, const std::string station, m_Working_Support = m_ListOfSupports[station]; // Get structure or structureZ - double z; + double z=0.; int found=0; std::string file; diff --git a/segmentation/clitkExtractMediastinumFilter.txx b/segmentation/clitkExtractMediastinumFilter.txx index 27cb661..6757180 100644 --- a/segmentation/clitkExtractMediastinumFilter.txx +++ b/segmentation/clitkExtractMediastinumFilter.txx @@ -263,6 +263,7 @@ GenerateOutputInformation() { MaskImagePointer bones_ant; MaskImagePointer bones_post; MaskImagePointType middle_AntPost_position; + middle_AntPost_position.Fill(NumericTraits::Zero); if (GetUseBones()) { this->StartNewStep("[Mediastinum] Ant/Post limits with bones");