Commit 9b21248f authored by Dan Melnic's avatar Dan Melnic Committed by Facebook Github Bot

Suppress header-hygiene warnings

Summary:
[Folly] Suppress `header-hygiene` warnings.

(Note: this ignores all push blocking failures!)

Differential Revision: D19529773

fbshipit-source-id: a4e0f49010ad17b72a55cd462a7a7c3e43b72c2a
parent 68154677
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include <folly/portability/Windows.h> #include <folly/portability/Windows.h>
#include <folly/Portability.h>
// I have no idea what the normal values for these are, // I have no idea what the normal values for these are,
// and really don't care what they are. They're only used // and really don't care what they are. They're only used
// within fcntl, so it's not an issue. // within fcntl, so it's not an issue.
...@@ -52,5 +54,8 @@ int open(char const* fn, int of, int pm = 0); ...@@ -52,5 +54,8 @@ int open(char const* fn, int of, int pm = 0);
} // namespace portability } // namespace portability
} // namespace folly } // namespace folly
FOLLY_PUSH_WARNING
FOLLY_CLANG_DISABLE_WARNING("-Wheader-hygiene")
/* using override */ using namespace folly::portability::fcntl; /* using override */ using namespace folly::portability::fcntl;
FOLLY_POP_WARNING
#endif #endif
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <folly/portability/Time.h> #include <folly/portability/Time.h>
#include <folly/portability/Windows.h> #include <folly/portability/Windows.h>
#include <folly/Portability.h>
#define PTHREAD_CREATE_JOINABLE 0 #define PTHREAD_CREATE_JOINABLE 0
#define PTHREAD_CREATE_DETACHED 1 #define PTHREAD_CREATE_DETACHED 1
...@@ -146,5 +148,8 @@ int pthread_setspecific(pthread_key_t key, const void* value); ...@@ -146,5 +148,8 @@ int pthread_setspecific(pthread_key_t key, const void* value);
} // namespace portability } // namespace portability
} // namespace folly } // namespace folly
FOLLY_PUSH_WARNING
FOLLY_CLANG_DISABLE_WARNING("-Wheader-hygiene")
/* using override */ using namespace folly::portability::pthread; /* using override */ using namespace folly::portability::pthread;
FOLLY_POP_WARNING
#endif #endif
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#define SCHED_FIFO 1 #define SCHED_FIFO 1
#define SCHED_RR 2 #define SCHED_RR 2
#include <folly/Portability.h>
namespace folly { namespace folly {
namespace portability { namespace portability {
namespace sched { namespace sched {
...@@ -36,5 +38,8 @@ int sched_get_priority_max(int policy); ...@@ -36,5 +38,8 @@ int sched_get_priority_max(int policy);
} // namespace portability } // namespace portability
} // namespace folly } // namespace folly
FOLLY_PUSH_WARNING
FOLLY_CLANG_DISABLE_WARNING("-Wheader-hygiene")
/* using override */ using namespace folly::portability::sched; /* using override */ using namespace folly::portability::sched;
FOLLY_POP_WARNING
#endif #endif
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#else #else
#include <limits.h> #include <limits.h>
#include <folly/Portability.h>
#define SEM_VALUE_MAX INT_MAX #define SEM_VALUE_MAX INT_MAX
namespace folly::portability::semaphore { namespace folly::portability::semaphore {
using sem_t = struct sem_t_*; using sem_t = struct sem_t_*;
...@@ -31,5 +33,8 @@ int sem_trywait(sem_t* s); ...@@ -31,5 +33,8 @@ int sem_trywait(sem_t* s);
int sem_wait(sem_t* s); int sem_wait(sem_t* s);
} // namespace folly::portability::semaphore } // namespace folly::portability::semaphore
FOLLY_PUSH_WARNING
FOLLY_CLANG_DISABLE_WARNING("-Wheader-hygiene")
/* using override */ using namespace folly::portability::semaphore; /* using override */ using namespace folly::portability::semaphore;
FOLLY_POP_WARNING
#endif #endif
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <folly/net/NetOps.h> #include <folly/net/NetOps.h>
#include <folly/Portability.h>
namespace folly { namespace folly {
namespace portability { namespace portability {
namespace sockets { namespace sockets {
...@@ -144,6 +146,9 @@ int setsockopt( ...@@ -144,6 +146,9 @@ int setsockopt(
#ifdef _WIN32 #ifdef _WIN32
// Add our helpers to the overload set. // Add our helpers to the overload set.
FOLLY_PUSH_WARNING
FOLLY_CLANG_DISABLE_WARNING("-Wheader-hygiene")
/* using override */ /* using override */
using namespace folly::portability::sockets; using namespace folly::portability::sockets;
FOLLY_POP_WARNING
#endif #endif
...@@ -91,5 +91,4 @@ ssize_t write(int fh, void const* buf, size_t count); ...@@ -91,5 +91,4 @@ ssize_t write(int fh, void const* buf, size_t count);
} // namespace folly } // namespace folly
/* using override */ using namespace folly::portability::unistd; /* using override */ using namespace folly::portability::unistd;
#endif #endif
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