summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2021-03-03 16:31:33 -0800
committerDentomologist <dentomologist@gmail.com>2021-03-07 10:10:02 -0800
commitfa61fc4f9cb9d9a5ea13eefc0eb7afeb26da0a9d (patch)
tree0a2b74b9cedba5a1d1c3d45796412258f22ef4a4 /Source/Core
parent636bf38824820fd9e079a661bc9a33bfd6a0b5a9 (diff)
Fix shadowing warnings
Fixes type/variable shadowing warnings on debian and ubuntu
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp2
-rw-r--r--Source/Core/Core/NetworkCaptureLogger.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp b/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp
index 122b5f6f71..32b4189321 100644
--- a/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp
+++ b/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp
@@ -146,7 +146,7 @@ s32 SDIOSlot0Device::ExecuteCommand(const Request& request, u32 buffer_in, u32 b
{
// The game will send us a SendCMD with this information. To be able to read and write
// to a file we need to prepare a 0x10 byte output buffer as response.
- struct Request
+ struct
{
u32 command;
u32 type;
diff --git a/Source/Core/Core/NetworkCaptureLogger.cpp b/Source/Core/Core/NetworkCaptureLogger.cpp
index 118deb234a..22dee582fe 100644
--- a/Source/Core/Core/NetworkCaptureLogger.cpp
+++ b/Source/Core/Core/NetworkCaptureLogger.cpp
@@ -186,8 +186,8 @@ void PCAPSSLCaptureLogger::LogIPv4(LogType log_type, const u8* data, u16 length,
}
std::vector<u8> packet;
- auto insert = [&](const auto* data, std::size_t size) {
- const u8* begin = reinterpret_cast<const u8*>(data);
+ auto insert = [&](const auto* new_data, std::size_t size) {
+ const u8* begin = reinterpret_cast<const u8*>(new_data);
packet.insert(packet.end(), begin, begin + size);
};