Index: compiler-rt/lib/builtins/emutls.c =================================================================== --- compiler-rt/lib/builtins/emutls.c +++ compiler-rt/lib/builtins/emutls.c @@ -182,8 +182,10 @@ } } +#if defined(_MSC_VER) #pragma warning(push) #pragma warning(disable : 4100) +#endif static BOOL CALLBACK emutls_init(PINIT_ONCE p0, PVOID p1, PVOID *p2) { emutls_mutex = (LPCRITICAL_SECTION)_aligned_malloc(sizeof(CRITICAL_SECTION), 16); @@ -251,7 +253,9 @@ #endif // __ATOMIC_RELEASE +#if defined(_MSC_VER) #pragma warning(pop) +#endif #endif // _WIN32