Skip to content

Commit bcea048

Browse files
rozelefacebook-github-bot
authored andcommitted
Fix issue with clang build on Windows
Summary: Matches logic on L83 where we check both _MSC_VER and __clang__ We need to add this check to avoid suppressing the useful pedantic warnings in //xplat/js/react-native-github. Reviewed By: shwanton, Orvid Differential Revision: D52603274 fbshipit-source-id: 02c146b141c8795c3ea3c5cb6984b6dfedd9c10a
1 parent 03b667a commit bcea048

File tree

1 file changed

+1
-1
lines changed
  • third-party/folly/src/folly/lang

1 file changed

+1
-1
lines changed

third-party/folly/src/folly/lang/Pretty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ using pretty_default_tag = std::conditional_t< //
8686

8787
template <typename T>
8888
static constexpr auto pretty_raw(pretty_tag_msc) {
89-
#if defined(_MSC_VER)
89+
#if defined(_MSC_VER) && !defined(__clang__)
9090
return pretty_carray_from(__FUNCSIG__);
9191
#endif
9292
}

0 commit comments

Comments
 (0)