File spice-gcc47.patch of Package spice

Index: spice-0.10.1/client/cmd_line_parser.cpp
===================================================================
--- spice-0.10.1.orig/client/cmd_line_parser.cpp
+++ spice-0.10.1/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++);

Index: spice-0.10.1/client/glz_decoder.cpp
===================================================================
--- spice-0.10.1.orig/client/glz_decoder.cpp
+++ spice-0.10.1/client/glz_decoder.cpp
@@ -50,7 +50,7 @@ GlzDecoder::~GlzDecoder()

 void GlzDecoder::decode_header()
 {
-    int magic;
+    uint32_t magic;
     int version;
     uint8_t tmp;
     int stride;



openSUSE Build Service is sponsored by