Fix autopkgtest regression on non x86: cc1plus: all warnings being treated as errors
authorAaron M. Ucko <ucko@debian.org>
Fri, 14 Apr 2023 17:18:06 +0000 (19:18 +0200)
committerAndreas Tille <tille@debian.org>
Fri, 14 Apr 2023 17:18:06 +0000 (19:18 +0200)
Last-Update: Fri, 14 Apr 2023 09:37:59 -0400
Bug-Debian: https://bugs.debian.org/1034369

Gbp-Pq: Name allow_unsigned_char.patch

unittests/map.hpp
unittests/multimap.hpp
unittests/unordered_map.hpp
unittests/unordered_multimap.hpp

index 5a91509b1a306664e67b8451f19c94b195c8209a..e44a5f472854c74db88746e6f4e55e4240467ce8 100644 (file)
@@ -62,7 +62,7 @@ void test_map()
 
     std::map<int8_t, StructExternalSplit> o_esplmap;
     for(int j=0; j<100; ++j)
-      o_esplmap.insert({random_value<char>(gen),  { random_value<int>(gen), random_value<int>(gen) }});
+      o_esplmap.insert({random_value<int8_t>(gen),  { random_value<int>(gen), random_value<int>(gen) }});
 
     std::ostringstream os;
     {
index 0e74b1b820a6b9c91b0b514252ad50426ec29e7c..cc0f50bf985345160fb4e6ccfb5f3e45122f2e1e 100644 (file)
@@ -71,7 +71,7 @@ void test_multimap()
     std::multimap<int8_t, StructExternalSplit> o_esplmultimap;
     for(int j=0; j<100; ++j)
     {
-      auto key = random_value<char>(gen);
+      auto key = random_value<int8_t>(gen);
       o_esplmultimap.insert({key,  { random_value<int>(gen), random_value<int>(gen) }});
       o_esplmultimap.insert({key,  { random_value<int>(gen), random_value<int>(gen) }});
     }
index cc50e7883eb08048f5051576cef5a538a6f8c67a..aa307b3710cd1aff817be7a3320a5d53624fa1f5 100644 (file)
@@ -54,7 +54,7 @@ void test_unordered_map()
 
     std::unordered_map<int8_t, StructExternalSplit> o_esplunordered_map;
     for(int j=0; j<100; ++j)
-      o_esplunordered_map.insert({random_value<char>(gen),  { random_value<int>(gen), random_value<int>(gen) }});
+      o_esplunordered_map.insert({random_value<int8_t>(gen),  { random_value<int>(gen), random_value<int>(gen) }});
 
     std::ostringstream os;
     {
index d5d76bc41a5e0bfd736620a6df7c94ccd86d7e0a..5b3048e86439dbbb288ddbb76a6c14d96a373346 100644 (file)
@@ -71,7 +71,7 @@ void test_unordered_multimap()
     std::unordered_multimap<int8_t, StructExternalSplit> o_esplunordered_multimap;
     for(int j=0; j<100; ++j)
     {
-      auto key = random_value<char>(gen);
+      auto key = random_value<int8_t>(gen);
       o_esplunordered_multimap.insert({key,  { random_value<int>(gen), random_value<int>(gen) }});
       o_esplunordered_multimap.insert({key,  { random_value<int>(gen), random_value<int>(gen) }});
     }