From 1f7cd009c950a5ab1291834217eb5daa838c0624 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 Oct 2021 01:01:29 +0200 Subject: [PATCH] Remove unnecessary warning triggering copy ctors from the test Defining a copy ctor results in -Werror=deprecated-copy when using implicitly-generated assignment operator with recent gcc versions, so simply remove this copy ctor, which was apparently never needed anyhow, to avoid it and rely on the compiler generating both the copy ctor and assignment operator implicitly. --- Examples/test-suite/director_nspace.i | 2 -- 1 file changed, 2 deletions(-) diff --git a/Examples/test-suite/director_nspace.i b/Examples/test-suite/director_nspace.i index f24227c68..016f61ddf 100644 --- a/Examples/test-suite/director_nspace.i +++ b/Examples/test-suite/director_nspace.i @@ -15,7 +15,6 @@ namespace TopLevel class FooBar { public: FooBar() {} - FooBar(const FooBar&) {} virtual ~FooBar() {} std::string FooBarDo() { return "Bar::Foo2::Foo2Bar()"; } @@ -56,7 +55,6 @@ namespace TopLevel class FooBar { public: FooBar(); - FooBar(const FooBar&); virtual ~FooBar(); std::string FooBarDo();