From 184120227207bb0fd2be836b9b1810455ff517e6 Mon Sep 17 00:00:00 2001 From: Casey Williams Date: Tue, 17 Jul 2018 13:07:35 -0700 Subject: [PATCH] (PA-2055) Disable warnings for boost::variant With boost 1.67, boost/variant.hpp introduces address and (in gcc 6+) nonnull-compare warnings; Quiet these to allow successful builds with -Werror. --- lib/inc/hocon/types.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/inc/hocon/types.hpp b/lib/inc/hocon/types.hpp index 97b9038..977202d 100644 --- a/lib/inc/hocon/types.hpp +++ b/lib/inc/hocon/types.hpp @@ -3,7 +3,13 @@ #include #include #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Waddress" +#if defined(__GNUC__) && __GNUC__ > 5 +#pragma GCC diagnostic ignored "-Wnonnull-compare" +#endif #include "boost/variant.hpp" +#pragma GCC diagnostic pop namespace hocon {