nodiscard fix.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-20 00:12:13 -07:00 committed by Ralf W. Grosse-Kunstleve
parent 223283295f
commit 4218213f29

View File

@ -21,7 +21,7 @@ struct WithSftTrampoline : WithSft {
void pass_shared_ptr(const std::shared_ptr<WithSft> &obj) { void pass_shared_ptr(const std::shared_ptr<WithSft> &obj) {
to_cout("LOOOK pass_shared_ptr entry"); to_cout("LOOOK pass_shared_ptr entry");
to_cout("LOOOK obj->shared_from_this();"); to_cout("LOOOK obj->shared_from_this();");
obj->shared_from_this(); (void) obj->shared_from_this();
to_cout("LOOOK pass_shared_ptr return"); to_cout("LOOOK pass_shared_ptr return");
} }