From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129864 invoked by alias); 1 Sep 2016 12:25:28 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 129846 invoked by uid 9078); 1 Sep 2016 12:25:28 -0000 Date: Thu, 01 Sep 2016 12:25:00 -0000 Message-ID: <20160901122528.129820.qmail@sourceware.org> From: corinna@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-24-g1c6add3 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d396ed1058cc89878344a6a1c7097b2cbe88274e X-Git-Newrev: 1c6add37cc0ea947a73b987cc4f4a477cc9cf858 X-SW-Source: 2016-q3/txt/msg00018.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=1c6add37cc0ea947a73b987cc4f4a477cc9cf858 commit 1c6add37cc0ea947a73b987cc4f4a477cc9cf858 Author: Corinna Vinschen Date: Thu Sep 1 14:25:20 2016 +0200 Convert deprecated auto_ptr to C++11-conformant unique_ptr Remove -Wno-deprecated-declarations option from Makefile.am because it was only added for this single expression. Signed-off-by: Corinna Vinschen Diff: --- Makefile.am | 3 +-- win32.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 044a1ce..3498c9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,8 +24,7 @@ SUBDIRS := @subdirs@ tests BASECXXFLAGS = -Werror -Wall -Wpointer-arith -Wcomments \ -Wcast-align -Wwrite-strings -fno-builtin-sscanf \ -Wno-attributes -AM_CXXFLAGS = $(BASECXXFLAGS) -std=gnu++11 -Wno-deprecated-declarations \ - ${$(*F)_CXXFLAGS} +AM_CXXFLAGS = $(BASECXXFLAGS) -std=gnu++11 ${$(*F)_CXXFLAGS} AM_CFLAGS = $(BASECXXFLAGS) -Wmissing-declarations -Winline \ -Wstrict-prototypes -Wmissing-prototypes AM_YFLAGS = -d diff --git a/win32.cc b/win32.cc index c243e8a..6531cb2 100644 --- a/win32.cc +++ b/win32.cc @@ -241,7 +241,7 @@ NTSecurity::setDefaultDACL () size_t bufferSize = sizeof (ACL) + sizeof (ACCESS_ALLOWED_ACE) + GetLengthSid (everyOneSID.theSID ()) - sizeof (DWORD); - std::auto_ptr buf (new char[bufferSize]); + std::unique_ptr buf (new char[bufferSize]); /* First initialize the TOKEN_DEFAULT_DACL structure. */ PACL dacl = (PACL) buf.get ();