From 64311997dd944d617dd072daef8faf8df945b293 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 16 Apr 2025 10:09:18 -0400 Subject: [PATCH] lutok: Switch from std::auto_ptr<> to std::unique_ptr<> This mirrors upstream commit bd5904144c9778a07685f3e4efa6ef011a5480ec. Reviewed by: igoro, imp, emaste Differential Revision: https://reviews.freebsd.org/D49788 (cherry picked from commit 25f2634a1f4b27c9804b705e85bc104a2eac67b9) --- contrib/lutok/stack_cleaner.hpp | 2 +- lib/liblutok/Makefile | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/contrib/lutok/stack_cleaner.hpp b/contrib/lutok/stack_cleaner.hpp index cd3e1468656..3e3a8edc3b6 100644 --- a/contrib/lutok/stack_cleaner.hpp +++ b/contrib/lutok/stack_cleaner.hpp @@ -72,7 +72,7 @@ class stack_cleaner { struct impl; /// Pointer to the shared internal implementation. - std::auto_ptr< impl > _pimpl; + std::unique_ptr< impl > _pimpl; /// Disallow copies. stack_cleaner(const stack_cleaner&); diff --git a/lib/liblutok/Makefile b/lib/liblutok/Makefile index 656cf7850f2..1ac88cfa06b 100644 --- a/lib/liblutok/Makefile +++ b/lib/liblutok/Makefile @@ -19,8 +19,4 @@ CFLAGS+= -I${SRCTOP}/contrib/lutok/include \ WARNS?= 3 SHLIB_MAJOR= 0 -# lutok uses auto_ptr -CFLAGS+= -Wno-deprecated-declarations -CXXSTD= c++11 - .include