Commit fe4c11a9 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix -Wshadow violations found by gcc

Summary: [Folly] Fix `-Wshadow` violations found by gcc.

Reviewed By: meyering

Differential Revision: D16578896

fbshipit-source-id: 3ffe6089ad7b78d9c01d085029b55ec94d6adcff
parent 91678d99
...@@ -121,7 +121,7 @@ std::string fbLogFatalCheck() { ...@@ -121,7 +121,7 @@ std::string fbLogFatalCheck() {
} }
struct MyStruct { struct MyStruct {
MyStruct(uint32_t a, uint32_t b) : a(a), b(b) {} MyStruct(uint32_t a_, uint32_t b_) : a(a_), b(b_) {}
uint32_t a; uint32_t a;
uint32_t b; uint32_t b;
}; };
......
...@@ -363,7 +363,7 @@ TEST(small_vector, InsertNontrivial) { ...@@ -363,7 +363,7 @@ TEST(small_vector, InsertNontrivial) {
class TestClass { class TestClass {
public: public:
// explicit TestClass() = default; // explicit TestClass() = default;
explicit TestClass(std::string s) : s(s) {} explicit TestClass(std::string s_) : s(s_) {}
std::string s; std::string s;
}; };
folly::small_vector<TestClass> v3(5, TestClass("asd")); folly::small_vector<TestClass> v3(5, TestClass("asd"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment