From d5be3746a1eb202663cb8264ab2d4769f6fe9d12 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 16 Jul 2017 01:20:50 +0300 Subject: [PATCH] Suppress warnings on g++ 4.x --- test/is_list_constructible_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/is_list_constructible_test.cpp b/test/is_list_constructible_test.cpp index d659196..2e7ee62 100644 --- a/test/is_list_constructible_test.cpp +++ b/test/is_list_constructible_test.cpp @@ -5,8 +5,9 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt -#if defined( __GNUC__ ) && (__GNUC__ >= 7) +#if defined( __GNUC__ ) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 407) #pragma GCC diagnostic ignored "-Wnarrowing" +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif #ifdef TEST_STD