g++ 5.1.0 error: comparison between signed and unsigned integer expressions

125 views
Skip to first unread message

dart...@gmail.com

unread,
Jun 25, 2015, 3:30:29 PM6/25/15
to googletes...@googlegroups.com
Compiling with g++ 5.1.0, I get 

sources/gmock/gtest/include/gtest/gtest.h:1448:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   if (expected == actual) {


I don't remember running into this error before upgrading to 5.1.0; perhaps this error is new in the compiler?

Billy Donahue

unread,
Jun 25, 2015, 3:32:15 PM6/25/15
to dart...@gmail.com, Google C++ Testing Framework
I don't know. Maybe your warning defaults have changed. Can you see if the trunk code has this problem?

--

---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages