fix IOBuf self move-assignment
[folly.git] / folly / IndexedMemPool.h
index 0c959a3c803e39a5963e0d3762c9cd1ac33ed179..a668627ed817ee54562585a84ba9d3b36cd967a7 100644 (file)
 #include <folly/AtomicStruct.h>
 #include <folly/detail/CacheLocality.h>
 
+// Ignore shadowing warnings within this file, so includers can use -Wshadow.
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+
 namespace folly {
 
 namespace detail {
@@ -424,4 +428,5 @@ struct IndexedMemPoolRecycler {
 
 } // namespace folly
 
+# pragma GCC diagnostic pop
 #endif