Switch unguarded #pragmas to use portability macros
[folly.git] / folly / gen / Core-inl.h
index 87891e360770365d9a0f2b1e336a7fca4ab5cb87..bd66827e791a626b92df7a94848851bc09fcbfd0 100644 (file)
 #include <type_traits>
 #include <utility>
 
+#include <folly/Portability.h>
+
 // Ignore shadowing warnings within this file, so includers can use -Wshadow.
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wshadow"
+FOLLY_PUSH_WARNING
+FOLLY_GCC_DISABLE_WARNING("-Wshadow")
 
 namespace folly {
 namespace gen {
@@ -376,4 +378,4 @@ public:
 } // gen
 } // folly
 
-#pragma GCC diagnostic pop
+FOLLY_POP_WARNING