Skip to content

Commit b26ffd9

Browse files
yfeldblumfacebook-github-bot
authored andcommitted
FOLLY_HAS_WARNING
Reviewed By: meyering Differential Revision: D72463023 fbshipit-source-id: 300a13e605b5511a0a2d039af6f35c360aafcca9
1 parent c28e850 commit b26ffd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

folly/CPortability.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
#define FOLLY_HAS_FEATURE(...) 0
6060
#endif
6161

62+
#if defined(__has_warning)
63+
#define FOLLY_HAS_WARNING(...) __has_warning(__VA_ARGS__)
64+
#else
65+
#define FOLLY_HAS_WARNING(...) 0
66+
#endif
67+
6268
/* FOLLY_SANITIZE_ADDRESS is defined to 1 if the current compilation unit
6369
* is being compiled with ASAN or HWASAN enabled.
6470
*

0 commit comments

Comments
 (0)