From 4acb92e6482e80dba05e791bc34c955222bdc98f Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Mon, 1 Oct 2018 22:02:40 +0200
Subject: [PATCH] CoralDB: Suppress a gcc8 warning from boost.

Suppress a gcc8 warning from boost (in mpl/assert.hpp).
(Binaries apparently include boost with -I rather than -isystem.)
Fixed in boost 1.68 (see https://github.com/boostorg/mpl/issues/31)
---
 Database/CoralDB/src/ccdb-migrate.cxx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Database/CoralDB/src/ccdb-migrate.cxx b/Database/CoralDB/src/ccdb-migrate.cxx
index e73283a6ead..be8570485a6 100644
--- a/Database/CoralDB/src/ccdb-migrate.cxx
+++ b/Database/CoralDB/src/ccdb-migrate.cxx
@@ -20,8 +20,18 @@
 
 #include <ctime>
 
+// Suppress a gcc8 warning from boost.
+// (Binaries apparently include boost with -I rather than -isystem.)
+// Fixed in boost 1.68 (see https://github.com/boostorg/mpl/issues/31)
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wparentheses"
+#endif
 #include "boost/program_options.hpp"
 namespace po = boost::program_options;
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif
 
 #include "CoralDB/CoralDB.h"
 #include "CoralDB/Connection.h"
-- 
GitLab