Hello community,

here is the log from the commit of package GeoIP for openSUSE:Factory checked 
in at 2016-06-19 10:49:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/GeoIP (Old)
 and      /work/SRC/openSUSE:Factory/.GeoIP.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "GeoIP"

Changes:
--------
--- /work/SRC/openSUSE:Factory/GeoIP/GeoIP.changes      2016-02-08 
09:47:49.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.GeoIP.new/GeoIP.changes 2016-06-19 
10:49:38.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Jun 16 09:06:14 UTC 2016 - [email protected]
+
+- Fix compilation errors seen by GCC6.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ geoip-asn-csv-to-dat.cpp ++++++
--- /var/tmp/diff_new_pack.ol1xB2/_old  2016-06-19 10:49:39.000000000 +0200
+++ /var/tmp/diff_new_pack.ol1xB2/_new  2016-06-19 10:49:39.000000000 +0200
@@ -700,12 +700,14 @@
 
                switch (address_family) {
                case AF_INET: {
-                       const char structure_info[4] = { 0xFF, 0xFF, 0xFF, 9 };
+                       const char structure_info[4] = { (char)0xFF, (char)0xFF,
+                                                        (char)0xFF, 9 };
                        dat_stream.write(structure_info, 4);
                        break;
                }
                case AF_INET6: {
-                       const char structure_info[4] = { 0xFF, 0xFF, 0xFF, 21 };
+                       const char structure_info[4] = { (char)0xFF, (char)0xFF,
+                                                        (char)0xFF, 21 };
                        dat_stream.write(structure_info, 4);
                        break;
                }

++++++ geoip-csv-to-dat.cpp ++++++
--- /var/tmp/diff_new_pack.ol1xB2/_old  2016-06-19 10:49:39.000000000 +0200
+++ /var/tmp/diff_new_pack.ol1xB2/_new  2016-06-19 10:49:39.000000000 +0200
@@ -655,12 +655,12 @@
                        uint8_t bytes[6];
                        char chars[6];
                } binary = {{
-                       (it->edges[0]      ) & 0xFF,
-                       (it->edges[0] >>  8) & 0xFF,
-                       (it->edges[0] >> 16) & 0xFF,
-                       (it->edges[1]      ) & 0xFF,
-                       (it->edges[1] >>  8) & 0xFF,
-                       (it->edges[1] >> 16) & 0xFF
+                       (uint8_t) ((it->edges[0]      ) & 0xFF),
+                       (uint8_t) ((it->edges[0] >>  8) & 0xFF),
+                       (uint8_t) ((it->edges[0] >> 16) & 0xFF),
+                       (uint8_t) ((it->edges[1]      ) & 0xFF),
+                       (uint8_t) ((it->edges[1] >>  8) & 0xFF),
+                       (uint8_t) ((it->edges[1] >> 16) & 0xFF)
                }};
                dat_stream->write(binary.chars, 6);
                if (dat_stream->bad())
@@ -680,7 +680,8 @@
 
 void dat_writer::write_structure_info()
 {
-       const char structure_info[4] = { 0xFF, 0xFF, 0xFF, database_type };
+       const char structure_info[4] = { (char)0xFF, (char)0xFF, (char)0xFF,
+                                        (char)database_type };
        dat_stream->write(structure_info, 4);
 }
 
@@ -804,13 +805,13 @@
 {
        int trie_size = std::distance(trie.nodes_begin(), trie.nodes_end());
 
-       const char structure_info[7] = { 0xFF,
-                                        0xFF,
-                                        0xFF,
-                                        database_type,
-                                        (trie_size      ) & 0xFF,
-                                        (trie_size >> 8 ) & 0xFF,
-                                        (trie_size >> 16) & 0xFF};
+       const char structure_info[7] = { (char)0xFF,
+                                        (char)0xFF,
+                                        (char)0xFF,
+                                        (char)database_type,
+                                        (char)((trie_size      ) & 0xFF),
+                                        (char)((trie_size >> 8 ) & 0xFF),
+                                        (char)((trie_size >> 16) & 0xFF)};
        dat_stream->write(structure_info, 7);
 }
 


Reply via email to