From 132ee3146d10b6e6a860bfd7e03b5a8667f2a44b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Jun 2017 01:02:22 +0300 Subject: Prevent Wshadow varnings in SDL code. --- src/fs/virtfs/fsdirrwops.cpp | 3 +++ src/fs/virtfs/fsziprwops.cpp | 3 +++ src/fs/virtfs/rwops.cpp | 3 +++ src/fs/virtfs/virtfs1_unittest.cc | 3 +++ src/fs/virtfs/zipreader.cpp | 3 +++ 5 files changed, 15 insertions(+) (limited to 'src/fs/virtfs') diff --git a/src/fs/virtfs/fsdirrwops.cpp b/src/fs/virtfs/fsdirrwops.cpp index e77a4fc5f..14c6015f5 100644 --- a/src/fs/virtfs/fsdirrwops.cpp +++ b/src/fs/virtfs/fsdirrwops.cpp @@ -24,7 +24,10 @@ #include "fs/virtfs/file.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow") #include +#pragma GCC diagnostic pop #include "debug.h" diff --git a/src/fs/virtfs/fsziprwops.cpp b/src/fs/virtfs/fsziprwops.cpp index 739ad4d3a..d744bdc73 100644 --- a/src/fs/virtfs/fsziprwops.cpp +++ b/src/fs/virtfs/fsziprwops.cpp @@ -25,7 +25,10 @@ #include "fs/virtfs/file.h" #include "fs/virtfs/fsfuncs.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow") #include +#pragma GCC diagnostic pop #include "debug.h" diff --git a/src/fs/virtfs/rwops.cpp b/src/fs/virtfs/rwops.cpp index e6ff601b3..03131e1db 100644 --- a/src/fs/virtfs/rwops.cpp +++ b/src/fs/virtfs/rwops.cpp @@ -52,7 +52,10 @@ #include "utils/fuzzer.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow") #include +#pragma GCC diagnostic pop #include "debug.h" diff --git a/src/fs/virtfs/virtfs1_unittest.cc b/src/fs/virtfs/virtfs1_unittest.cc index 4bec32e5b..c5ca2736e 100644 --- a/src/fs/virtfs/virtfs1_unittest.cc +++ b/src/fs/virtfs/virtfs1_unittest.cc @@ -31,7 +31,10 @@ #include "utils/delete2.h" #include "utils/stringutils.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow") #include +#pragma GCC diagnostic pop #ifndef UNITTESTS_CATCH #include diff --git a/src/fs/virtfs/zipreader.cpp b/src/fs/virtfs/zipreader.cpp index c97b2ec61..4e81d24eb 100644 --- a/src/fs/virtfs/zipreader.cpp +++ b/src/fs/virtfs/zipreader.cpp @@ -29,7 +29,10 @@ #include "utils/stringutils.h" #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow") #include +#pragma GCC diagnostic pop #if SDL_BYTEORDER == SDL_BIG_ENDIAN #include -- cgit v1.2.3-70-g09d2