From 4218213f2998d3fc89f29d369798c92ab89f8058 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sun, 20 Jun 2021 00:12:13 -0700 Subject: [PATCH] nodiscard fix. --- tests/test_class_sh_trampoline_shared_from_this.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_class_sh_trampoline_shared_from_this.cpp b/tests/test_class_sh_trampoline_shared_from_this.cpp index f6329eefa..dac776515 100644 --- a/tests/test_class_sh_trampoline_shared_from_this.cpp +++ b/tests/test_class_sh_trampoline_shared_from_this.cpp @@ -21,7 +21,7 @@ struct WithSftTrampoline : WithSft { void pass_shared_ptr(const std::shared_ptr &obj) { to_cout("LOOOK pass_shared_ptr entry"); to_cout("LOOOK obj->shared_from_this();"); - obj->shared_from_this(); + (void) obj->shared_from_this(); to_cout("LOOOK pass_shared_ptr return"); }