From: tbaudier Date: Wed, 11 Apr 2018 14:31:41 +0000 (+0200) Subject: Remove compilation warnings X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b1ef733b737c1127f3f8b378d8ca62a17a5d9eed;p=clitk.git Remove compilation warnings Cosmetics removing tabs by spaces --- diff --git a/common/clitkXdrImageIOReader.cxx b/common/clitkXdrImageIOReader.cxx index ea476d7..2e5ad4f 100644 --- a/common/clitkXdrImageIOReader.cxx +++ b/common/clitkXdrImageIOReader.cxx @@ -202,10 +202,10 @@ static char *scan_header(const char *file, const char *name, int offset, int rem static int get_nki_compressed_size(FILE *f) { - NKI_MODE2 Header; - int iMode; + NKI_MODE2 Header; + int iMode; - fread((void *)&Header, sizeof(Header), 1 , f); + int tempReturn = fread((void *)&Header, sizeof(Header), 1 , f); iMode = Header.iMode; @@ -593,7 +593,7 @@ int clitk::XdrImageIO::ReadImageInformationWithError() fstream = fopen(file, "rt"); if (fstream == NULL) return ER_XDR_OPEN; - fgets(temp, 500, fstream); + char* tempReturn = fgets(temp, 500, fstream); fclose(fstream); if (memcmp(temp, "# AVS field file (produced by avs_nfwrite.c)", 44)==0) forcenoswap=1; @@ -938,7 +938,7 @@ bool clitk::XdrImageIO::CanReadFile(const char* FileNameToRead) // AVSerror("Couldn't open file " << FileNameToRead); return false; // } - fgets(temp, 500, fstream); + char* tempReturn = fgets(temp, 500, fstream); fclose(fstream); if (memcmp(temp, "# AVS", 5)==0) diff --git a/vv/vvDeformableRegistration.cxx b/vv/vvDeformableRegistration.cxx index 12a2959..980b3e7 100644 --- a/vv/vvDeformableRegistration.cxx +++ b/vv/vvDeformableRegistration.cxx @@ -54,8 +54,8 @@ vvDeformableRegistration::vvDeformableRegistration(vvImage::Pointer image,unsign void vvDeformableRegistration::abort() { aborted=true; - std::system("killall deformableregistration"); - std::system("killall clitkVFMerge"); + int tempReturn = std::system("killall deformableregistration"); + tempReturn = std::system("killall clitkVFMerge"); } unsigned int vvDeformableRegistration::getProgress() @@ -71,16 +71,16 @@ void vvDeformableRegistration::cleanup(int frame_number) //remove temporary file for (int i=0; iGetOrigin()[2]; command << " -o " << output_filename << std::endl; DD(command.str()); - std::system(command.str().c_str()); + tempReturn = std::system(command.str().c_str()); cleanup(images.size()); if (aborted) { - std::system(("rm " + output_filename).c_str()); + tempReturn = std::system(("rm " + output_filename).c_str()); return; } vvImageReader::Pointer reader = vvImageReader::New();