From 295b72cbc0e2106f1afff9f1f4e5adef416a4741 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 28 Apr 2020 02:04:29 +0300 Subject: [PATCH] Disable -Waddress in lightweight_test_test.cpp --- test/lightweight_test_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lightweight_test_test.cpp b/test/lightweight_test_test.cpp index 2880625..73538b4 100644 --- a/test/lightweight_test_test.cpp +++ b/test/lightweight_test_test.cpp @@ -39,6 +39,10 @@ void f( bool x ) } } +#if defined(__GNUC__) +# pragma GCC diagnostic ignored "-Waddress" +#endif + #if defined(__clang__) && defined(__has_warning) # if __has_warning( "-Wstring-plus-int" ) # pragma clang diagnostic ignored "-Wstring-plus-int"