move assignment operators for folly::Synchronized
[folly.git] / folly / io / IOBuf.h
index 935f82b6ff51a518621799b9a11f77b90d0e0ae3..3a2fa383b71cafffd38a75543ac5e60c719def24 100644 (file)
 #include "folly/Range.h"
 #include "folly/FBVector.h"
 
+// Ignore shadowing warnings within this file, so includers can use -Wshadow.
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+
 namespace folly {
 
 /**
@@ -1214,4 +1218,6 @@ inline IOBuf::Iterator IOBuf::end() const { return cend(); }
 
 } // folly
 
+#pragma GCC diagnostic pop
+
 #endif // FOLLY_IO_IOBUF_H_