Skip to content

Commit

Permalink
patch gtest.cc to suppress gcc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed May 22, 2020
1 parent 2fc7f2e commit 61c4cb0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 28 deletions.
15 changes: 15 additions & 0 deletions test/gtest/gtest-1.10.0.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/test/gtest/src/gtest.cc b/test/gtest/src/gtest.cc
index a5b4e5a..1dff1a6 100644
--- a/test/gtest/src/gtest.cc
+++ b/test/gtest/src/gtest.cc
@@ -34,6 +34,10 @@
#include "gtest/internal/custom/gtest.h"
#include "gtest/gtest-spi.h"

+#ifndef _WIN32
+#pragma GCC system_header
+#endif
+
#include <ctype.h>
#include <math.h>
#include <stdarg.h>
28 changes: 0 additions & 28 deletions test/gtest/gtest-20180605-98a0d007d70.diff

This file was deleted.

4 changes: 4 additions & 0 deletions test/gtest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
#include "gtest/internal/custom/gtest.h"
#include "gtest/gtest-spi.h"

#ifndef _WIN32
#pragma GCC system_header
#endif

#include <ctype.h>
#include <math.h>
#include <stdarg.h>
Expand Down

0 comments on commit 61c4cb0

Please sign in to comment.