summaryrefslogtreecommitdiff
path: root/external/box2d/disable-shadow-warning-for-drawh.patch
blob: 316a6ff9e2849dcaa5e64b0fd151e89f0b1ce641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -ur box2d/Box2D/Box2D/Box2D.h box2d_patched/Box2D/Box2D/Box2D.h
--- box2d/Box2D/Box2D/Box2D.h	2014-04-06 03:43:12.000000000 +0300
+++ box2d_patched/Box2D/Box2D/Box2D.h	2020-06-17 18:44:25.920658966 +0300
@@ -32,7 +32,14 @@
 // These include files constitute the main Box2D API
 
 #include <Box2D/Common/b2Settings.h>
+#if defined __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
 #include <Box2D/Common/b2Draw.h>
+#if defined __GNUC__
+#pragma GCC diagnostic pop
+#endif
 #include <Box2D/Common/b2Timer.h>
 
 #include <Box2D/Collision/Shapes/b2CircleShape.h>