|
| 1 | +diff --git a/absl/base/attributes.h b/absl/base/attributes.h |
| 2 | +index 5ea5ee3e..f4949898 100644 |
| 3 | +--- a/absl/base/attributes.h |
| 4 | ++++ b/absl/base/attributes.h |
| 5 | +@@ -559,7 +559,7 @@ |
| 6 | + #undef ABSL_ATTRIBUTE_UNUSED |
| 7 | + #define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__)) |
| 8 | + #else |
| 9 | +-#define ABSL_ATTRIBUTE_UNUSED |
| 10 | ++#define ABSL_ATTRIBUTE_UNUSED [[maybe_unused]] |
| 11 | + #endif |
| 12 | + |
| 13 | + // ABSL_ATTRIBUTE_INITIAL_EXEC |
| 14 | +diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h |
| 15 | +index d4fe8f5c..27418d13 100644 |
| 16 | +--- a/absl/container/internal/raw_hash_set.h |
| 17 | ++++ b/absl/container/internal/raw_hash_set.h |
| 18 | +@@ -1924,7 +1924,7 @@ HashtablezInfoHandle SampleHashtablezInfo(size_t sizeof_slot, size_t sizeof_key, |
| 19 | + // In SOO, we sample on the first insertion so if this is an empty SOO case |
| 20 | + // (e.g. when reserve is called), then we still need to sample. |
| 21 | + if (kSooEnabled && was_soo && c.size() == 0) { |
| 22 | +- return Sample(sizeof_slot, sizeof_key, sizeof_value, SooCapacity()); |
| 23 | ++ return Sample(sizeof_slot, sizeof_key, sizeof_value, (int16_t)SooCapacity()); |
| 24 | + } |
| 25 | + // For non-SOO cases, we sample whenever the capacity is increasing from zero |
| 26 | + // to non-zero. |
| 27 | +@@ -3525,7 +3525,7 @@ class raw_hash_set { |
| 28 | + assert(is_soo()); |
| 29 | + if (!ShouldSampleHashtablezInfo<CharAlloc>()) return HashtablezInfoHandle{}; |
| 30 | + return Sample(sizeof(slot_type), sizeof(key_type), sizeof(value_type), |
| 31 | +- SooCapacity()); |
| 32 | ++ (int16_t)SooCapacity()); |
| 33 | + } |
| 34 | + |
| 35 | + inline void destroy_slots() { |
1 | 36 | diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake |
2 | | -index a4ab1aa2..dfd13fd7 100644 |
| 37 | +index da2282fe..4c7fc26f 100644 |
3 | 38 | --- a/absl/copts/GENERATED_AbseilCopts.cmake |
4 | 39 | +++ b/absl/copts/GENERATED_AbseilCopts.cmake |
5 | | -@@ -129,8 +129,6 @@ list(APPEND ABSL_MSVC_FLAGS |
| 40 | +@@ -181,8 +181,6 @@ list(APPEND ABSL_MSVC_FLAGS |
6 | 41 | "/wd4005" |
7 | 42 | "/wd4068" |
8 | 43 | "/wd4180" |
9 | 44 | - "/wd4244" |
10 | 45 | - "/wd4267" |
11 | 46 | "/wd4503" |
12 | 47 | "/wd4800" |
13 | | - ) |
| 48 | + "/DNOMINMAX" |
14 | 49 | diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl |
15 | | -index a6efc98e..8c4de8e7 100644 |
| 50 | +index b9e0071e..dd8410ec 100644 |
16 | 51 | --- a/absl/copts/GENERATED_copts.bzl |
17 | 52 | +++ b/absl/copts/GENERATED_copts.bzl |
18 | | -@@ -130,8 +130,6 @@ ABSL_MSVC_FLAGS = [ |
| 53 | +@@ -182,8 +182,6 @@ ABSL_MSVC_FLAGS = [ |
19 | 54 | "/wd4005", |
20 | 55 | "/wd4068", |
21 | 56 | "/wd4180", |
22 | 57 | - "/wd4244", |
23 | 58 | - "/wd4267", |
24 | 59 | "/wd4503", |
25 | 60 | "/wd4800", |
26 | | - ] |
| 61 | + "/DNOMINMAX", |
27 | 62 | diff --git a/absl/copts/copts.py b/absl/copts/copts.py |
28 | | -index e6e11949..0aa7d868 100644 |
| 63 | +index 2d85ac74..4875d668 100644 |
29 | 64 | --- a/absl/copts/copts.py |
30 | 65 | +++ b/absl/copts/copts.py |
31 | | -@@ -115,10 +115,6 @@ MSVC_WARNING_FLAGS = [ |
| 66 | +@@ -118,10 +118,6 @@ MSVC_WARNING_FLAGS = [ |
32 | 67 | "/wd4068", # unknown pragma |
33 | 68 | # qualifier applied to function type has no meaning; ignored |
34 | 69 | "/wd4180", |
|
0 commit comments