public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
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
Date: Thu, 01 Sep 2016 12:25:00 -0000	[thread overview]
Message-ID: <20160901122528.129820.qmail@sourceware.org> (raw)




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 ();


                 reply	other threads:[~2016-09-01 12:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160901122528.129820.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).