Small readability improvements
[folly.git] / folly / IndexedMemPool.h
index cef4d0ead1c9e1ec5b3b0882c67e48b557240bc4..a668627ed817ee54562585a84ba9d3b36cd967a7 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef FOLLY_DETAIL_INDEXEDMEMPOOL_H
-#define FOLLY_DETAIL_INDEXEDMEMPOOL_H
+#ifndef FOLLY_INDEXEDMEMPOOL_H
+#define FOLLY_INDEXEDMEMPOOL_H
 
 #include <stdint.h>
 #include <assert.h>
 #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