Fix compile error for x86/Linux
- disable "infinite-recursion" for "recursiveFtn" function
- only for clang
Commit migrated from https://github.com/dotnet/coreclr/commit/
7200e78258623eb889a46aa7a90818046bd1957d
return 0;
}
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Winfinite-recursion"
+#endif
+
static int __stdcall recursiveFtn() {
return recursiveFtn()+1;
}
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
+
#pragma optimize("", on )