Closed GoogleCodeExporter closed 9 years ago
Patch, fwiw:
Index: include/gtest/internal/gtest-linked_ptr.h
===================================================================
--- include/gtest/internal/gtest-linked_ptr.h (revision 435)
+++ include/gtest/internal/gtest-linked_ptr.h (working copy)
@@ -177,6 +177,7 @@
T* release() {
bool last = link_.depart();
assert(last);
+ (void)last;
T* v = value_;
value_ = NULL;
return v;
Original comment by thakis@google.com
on 10 Oct 2010 at 10:56
Thanks for the patch. It looks good.
While we test gtest rigorously, there's no guarantee that you'll be using the
same compiler, or the same version of the compiler, and the same compiler flags
as we do. Therefore you may see other warnings coming up in the future.
If you use -Werror with gtest, I suggest that you use the -isystem flag to mark
gtest headers as system headers. That'll suppress warnings from gtest headers.
This is what Kenton Varda suggests users of protobuf do too.
Original comment by w...@google.com
on 11 Oct 2010 at 5:15
Thanks, that's a good suggestion.
Original comment by thakis@google.com
on 11 Oct 2010 at 5:22
Fixed in r492.
Original comment by w...@google.com
on 11 Oct 2010 at 6:30
Original issue reported on code.google.com by
thakis@google.com
on 10 Oct 2010 at 10:35