summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-09-30 15:41:34 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-09-30 15:41:34 (GMT)
commita9dcc7fd47048a25f79f04a0d0a57a81aede617b (patch)
tree367c4e907bdab9961e981e44a40de016fa7a574c /Source/cmFileCommand.cxx
parent67530409a91156b06b3f8076bbd2e96969319fd4 (diff)
downloadCMake-a9dcc7fd47048a25f79f04a0d0a57a81aede617b.zip
CMake-a9dcc7fd47048a25f79f04a0d0a57a81aede617b.tar.gz
CMake-a9dcc7fd47048a25f79f04a0d0a57a81aede617b.tar.bz2
Fix warnings in CMake source code. Suppress warnings in Lexer and Parser files that are 'too hard' to fix.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index dc2f377..a70ca75 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -589,7 +589,9 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
(c == '\n' && newline_consume))
{
// This is an ASCII character that may be part of a string.
- s += c;
+ // Cast added to avoid compiler warning. Cast is ok because
+ // c is guaranteed to fit in char by the above if...
+ s += static_cast<char>(c);
}
else
{