diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-01-23 20:33:27 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-01-23 20:33:27 +0100 |
commit | 965a1a253cc9def4d040d9ba5c03f25279af8ea7 (patch) | |
tree | ea6558608ec9ad54c2cf3fac93e4d1459a068692 /client/cmd_line_parser.cpp | |
parent | 8817549795722026ca83edab2640b8f156510074 (diff) | |
download | spice-965a1a253cc9def4d040d9ba5c03f25279af8ea7.tar.gz spice-965a1a253cc9def4d040d9ba5c03f25279af8ea7.tar.xz spice-965a1a253cc9def4d040d9ba5c03f25279af8ea7.zip |
More comparison between signed and unsigned integer expressions warning fixes
Turns out that more recent snapshots of gcc-4.7 emit even more of these,
so the fixes which I've done before tagging the 0.10.1 release are not
enough to build warning free with the latest gcc-4.7 snapshot <sigh>.
This fixes this.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'client/cmd_line_parser.cpp')
-rw-r--r-- | client/cmd_line_parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/cmd_line_parser.cpp b/client/cmd_line_parser.cpp index 25ce05bf..b937fb0f 100644 --- a/client/cmd_line_parser.cpp +++ b/client/cmd_line_parser.cpp @@ -497,10 +497,9 @@ void CmdLineParser::show_help() os << " "; } if (line.size() > HELP_WIDTH) { - int now = HELP_WIDTH; + size_t last_space, now = HELP_WIDTH; std::string sub; sub.append(line, 0, now); - int last_space; if ((last_space = sub.find_last_of(' ')) != std::string::npos) { now = last_space; sub.resize(now++); |