From e73e8bfc83b2daed311167e7ceecb2d797b7a0c8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 02:55:52 +0200 Subject: [PATCH] Disable C4512 in uncaught_exceptions(_np).cpp --- test/uncaught_exceptions.cpp | 4 ++++ test/uncaught_exceptions_np.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/uncaught_exceptions.cpp b/test/uncaught_exceptions.cpp index d8b1fc6..c5d7958 100644 --- a/test/uncaught_exceptions.cpp +++ b/test/uncaught_exceptions.cpp @@ -18,6 +18,10 @@ #include #include +#if defined(_MSC_VER) +# pragma warning(disable: 4512) // assignment operator could not be generated +#endif + struct my_exception {}; class exception_watcher diff --git a/test/uncaught_exceptions_np.cpp b/test/uncaught_exceptions_np.cpp index 7498ccf..f60aef1 100644 --- a/test/uncaught_exceptions_np.cpp +++ b/test/uncaught_exceptions_np.cpp @@ -20,6 +20,10 @@ #include +#if defined(_MSC_VER) +# pragma warning(disable: 4512) // assignment operator could not be generated +#endif + struct my_exception1 {}; struct my_exception2 {};