From 9103feccfda8089cd19061efdf6d2811af1e72f8 Mon Sep 17 00:00:00 2001 From: scott snyder <scott.snyder@cern.ch> Date: Tue, 11 Dec 2018 09:40:28 +0100 Subject: [PATCH] AthViews: Fix gcc9 warnings. In C++11, implicit declarations of copy and assignment are deprecated if the class has a user defined destructor or copy or assignment. gcc9 now warns about this by default. Adjust to avoid the warning. Former-commit-id: f97e3c1a69082e32018a49aabd18f9689dbccf2c --- Control/AthViews/test/ViewCollectionMerge_test.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Control/AthViews/test/ViewCollectionMerge_test.cxx b/Control/AthViews/test/ViewCollectionMerge_test.cxx index ad9d17111e4..b1d4f720efa 100644 --- a/Control/AthViews/test/ViewCollectionMerge_test.cxx +++ b/Control/AthViews/test/ViewCollectionMerge_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */ /** @@ -32,8 +32,15 @@ #include "AthenaKernel/ExtendedEventContext.h" // Google Test and Google Mock +#if __GNUC__ >= 9 +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-copy" +#endif #include "gtest/gtest.h" #include "gmock/gmock.h" +#if __GNUC__ >= 9 +# pragma GCC diagnostic pop +#endif // Names for storing collections -- GitLab