aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--absl/copts.bzl1
-rw-r--r--absl/synchronization/mutex.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/absl/copts.bzl b/absl/copts.bzl
index e52ed49..cc8db2f 100644
--- a/absl/copts.bzl
+++ b/absl/copts.bzl
@@ -10,6 +10,7 @@ GCC_FLAGS = [
"-Wcast-qual",
"-Wconversion-null",
"-Wmissing-declarations",
+ "-Wno-sign-compare",
"-Woverlength-strings",
"-Wpointer-arith",
"-Wunused-local-typedefs",
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h
index 8343c9c..bad37c5 100644
--- a/absl/synchronization/mutex.h
+++ b/absl/synchronization/mutex.h
@@ -598,7 +598,7 @@ class SCOPED_LOCKABLE WriterMutexLock {
// // assume count_ is not internal reference count
// int count_ GUARDED_BY(mu_);
//
-// mu_.LockWhen(Condition(+[](const int* count) { return *count == 0; },
+// mu_.LockWhen(Condition(+[](int* count) { return *count == 0; },
// &count_));
//
// When multiple threads are waiting on exactly the same condition, make sure