summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-10-01 20:47:08 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-10-01 20:47:08 (GMT)
commit44bcba746156ad1d5fe7f784380c3fb4f4672f6b (patch)
tree34028a688c7649519a6a1086949f859d75a1a63f /Source/cmake.cxx
parent86459a89a10733bad549c34a4c4c0ca962397bc6 (diff)
downloadCMake-44bcba746156ad1d5fe7f784380c3fb4f4672f6b.zip
CMake-44bcba746156ad1d5fe7f784380c3fb4f4672f6b.tar.gz
CMake-44bcba746156ad1d5fe7f784380c3fb4f4672f6b.tar.bz2
Fix warnings in CMake source code. Suppress rampant warnings emanating from Qt files.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index cdee8d2..108827a 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1276,7 +1276,10 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
int count;
if (countFile)
{
- fscanf(countFile,"%i",&count);
+ if (1!=fscanf(countFile,"%i",&count))
+ {
+ cmSystemTools::Message("Could not read from count file.");
+ }
fclose(countFile);
}
else
@@ -1318,7 +1321,10 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
}
else
{
- fscanf(progFile,"%i",&count);
+ if (1!=fscanf(progFile,"%i",&count))
+ {
+ cmSystemTools::Message("Could not read from progress file.");
+ }
fclose(progFile);
}
unsigned int i;