Skip to content

Commit b534b08

Browse files
committed
Suppress warnings in certain tests where they are expected.
1 parent ba86e29 commit b534b08

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Release/src/websockets/client/ws_client_wspp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050

5151
#endif /* __GNUC__ */
5252

53+
#if defined(_MSC_VER)
54+
#pragma warning( disable : 4503 )
55+
#endif
56+
5357
// This is a hack to avoid memory leak reports from the debug MSVC CRT for all
5458
// programs using the library: ASIO calls SSL_library_init() which calls
5559
// SSL_COMP_get_compression_methods(), which allocates some heap memory and the

Release/tests/functional/utils/strings.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,14 @@ TEST(latin1_to_utf16)
285285
}
286286
}
287287

288+
#if defined(_MSC_VER)
289+
#pragma warning(disable : 4996)
290+
#elif defined(__clang__)
291+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
292+
#elif defined(__GNUC__)
293+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
294+
#endif
295+
288296
TEST(print_string_locale, "Ignore:Android", "Locale unsupported on Android")
289297
{
290298
std::locale changedLocale;

0 commit comments

Comments
 (0)