This is the mail archive of the cygwin-apps-cvs mailing list for the cygwin-apps project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-24-g1c6add3




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=1c6add37cc0ea947a73b987cc4f4a477cc9cf858

commit 1c6add37cc0ea947a73b987cc4f4a477cc9cf858
Author: Corinna Vinschen <corinna@vinschen.de>
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 <corinna@vinschen.de>


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<char> buf (new char[bufferSize]);
+  std::unique_ptr<char[]> buf (new char[bufferSize]);
 
   /* First initialize the TOKEN_DEFAULT_DACL structure.  */
   PACL dacl = (PACL) buf.get ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]