From aaff9d3210eaab34af078aa79a89f9b86dd547af Mon Sep 17 00:00:00 2001 From: SoraYuki Date: Sat, 12 Oct 2019 13:37:18 +0800 Subject: [PATCH] [core] prevent compile if stack unwinding when exception handling is off in MSVC --- srtcore/api.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 15552f291..b1837b176 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -67,6 +67,10 @@ modified by #include #endif +#ifdef _MSC_VER + #pragma warning(error: 4530) +#endif + using namespace std; using namespace srt_logging; extern LogConfig srt_logger_config;