From f97e2750e412ff51610ec611632e91cea6f216d0 Mon Sep 17 00:00:00 2001 From: Leandro Dorileo Date: Fri, 4 Jan 2013 01:21:07 +0000 Subject: [PATCH] Ephysics: get rid of shadow warnings Get rid of -Wshadow warnings on bullet's C++ "shadowed" variables. SVN revision: 82136 --- src/lib/ephysics/ephysics_body.cpp | 6 ++++++ src/lib/ephysics/ephysics_private.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/lib/ephysics/ephysics_body.cpp b/src/lib/ephysics/ephysics_body.cpp index eddfbfbee9..43a6d2728f 100644 --- a/src/lib/ephysics/ephysics_body.cpp +++ b/src/lib/ephysics/ephysics_body.cpp @@ -4,9 +4,15 @@ #include #include + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" + #include #include +#pragma GCC diagnostic pop + #include #include "ephysics_private.h" diff --git a/src/lib/ephysics/ephysics_private.h b/src/lib/ephysics/ephysics_private.h index 1f888ca88d..36ece8c678 100644 --- a/src/lib/ephysics/ephysics_private.h +++ b/src/lib/ephysics/ephysics_private.h @@ -7,6 +7,7 @@ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wshadow" #include #include