Skip to content

Commit ce93dc7

Browse files
committed
Only push clang warnings on clang
1 parent 93c1348 commit ce93dc7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/from_current.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,17 @@ namespace detail {
111111
std::int32_t pCatchableTypeArray;
112112
};
113113
#pragma warning(disable:4200)
114-
#pragma clang diagnostic push
115-
#pragma clang diagnostic ignored "-Wc99-extensions"
114+
#if IS_CLANG
115+
#pragma clang diagnostic push
116+
#pragma clang diagnostic ignored "-Wc99-extensions"
117+
#endif
116118
struct CatchableTypeArray {
117119
uint32_t nCatchableTypes;
118120
int32_t arrayOfCatchableTypes[];
119121
};
120-
#pragma clang diagnostic pop
122+
#if IS_CLANG
123+
#pragma clang diagnostic pop
124+
#endif
121125
#pragma warning (pop)
122126
#pragma pack(pop)
123127
#else

0 commit comments

Comments
 (0)