Permalink
Browse files

Disable sign-compare warning

  • Loading branch information...
chrberger committed Aug 7, 2017
1 parent d4e040d commit 26d5010c0c86b3aa6ca519bcb08f7241977c7f44
Showing with 11 additions and 0 deletions.
  1. +11 −0 cxxtest/cxxtest/TestSuite.h
@@ -66,7 +66,18 @@ struct equals
{
static bool test(X x, Y y)
{
#ifndef WIN32
# if !defined(__OpenBSD__) && !defined(__NetBSD__)
# pragma GCC diagnostic push
# endif
# pragma GCC diagnostic ignored "-Wsign-compare"
#endif
return (x == y);
#ifndef WIN32
# if !defined(__OpenBSD__) && !defined(__NetBSD__)
# pragma GCC diagnostic pop
# endif
#endif
}
};

0 comments on commit 26d5010

Please sign in to comment.