From 1de0345663240c50a3a9101f1370ec9caa8dc4c2 Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Sat, 5 Sep 2020 18:10:03 +0200
Subject: [PATCH] CrestApi: Fix clang warning.

Clang warns about an unused argument in the boost parameter code.
Suppress it.
---
 Database/CrestApi/CrestApi/CrestApi.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Database/CrestApi/CrestApi/CrestApi.h b/Database/CrestApi/CrestApi/CrestApi.h
index 0ed501091d8..b63144f2915 100644
--- a/Database/CrestApi/CrestApi/CrestApi.h
+++ b/Database/CrestApi/CrestApi/CrestApi.h
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 2019 CERN for the benefit of the ATLAS collaboration
+   Copyright (C) 2019, 2020 CERN for the benefit of the ATLAS collaboration
  */
 
 
@@ -1092,6 +1092,11 @@ void storeBatchPayloadsFs(std::string tag_name, nlohmann::json& js);
  *
  *  nlohmann::json listTagsParams(int _size, int _page);
  */
+#ifdef __clang__
+// Suppress clang warning about unused argument from boost code.
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunused-parameter"
+#endif
 BOOST_PARAMETER_MEMBER_FUNCTION(
    (nlohmann::json), 
    listTagsParams,
@@ -1107,6 +1112,9 @@ BOOST_PARAMETER_MEMBER_FUNCTION(
 
    return listTags(size, page); 
 }
+#ifdef __clang__
+# pragma clang diagnostic pop
+#endif
 
 
 // Boost Function Fragment (end)
-- 
GitLab