| Commit-Queue | +2 |
Add cpp-httplib local modification to correct sign comparison error.Justin CohenI think “BoringSSL compatibility” is more important and belongs here in the summary line. You should still talk about -Wsign-compare below, but there are only so many things you can fit in the first line.
Done
- Correct sign compare error in sk_X509_OBJECT_num.Justin CohenSay that this is for BoringSSL compatibility.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
7 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/cpp-httplib/README.crashpad
Insertions: 1, Deletions: 1.
@@ -25,4 +25,4 @@
- fbee136dca54 Fix #2193. Allow _WIN32
- dffce89514c2 Fix 32-bit MSVC compiler error due to unknown command
#warning (#2202)
- - Correct sign compare error in sk_X509_OBJECT_num.
+ - Fix sign compare error with sk_X509_OBJECT_num from BoringSSL.
```
Add cpp-httplib local modification for BoringSSL compatibility
In some build configurations, sk_X509_OBJECT_num (from BoringSSL)
returns a size_t. Comparing this directly against a signed int loop
counter triggers -Werror,-Wsign-compare.
This patch moves the count into a local int variable so the compiler
uses implicit conversion to ensure type consistency during the loop
comparison.
Upstream pull request created here:
https://github.com/yhirose/cpp-httplib/pull/2355
Full error: In file included from
../../third_party/crashpad/crashpad/util/net/http_transport_test_server.cc:42:
../../third_party/crashpad/crashpad/third_party/cpp-httplib/cpp-httplib/httplib.h:10923:21:
error: comparison of integers of different signs: 'int' and 'size_t'
(aka 'unsigned long') [-Werror,-Wsign-compare]
10923 | for (int i = 0; i < sk_X509_OBJECT_num(objs); i++) {
| ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated from:
https://ci.chromium.org/ui/p/chromium/builders/try/linux-chromeos-compile-dbg/2519055/overview
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |