public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-24-g1c6add3
@ 2016-09-01 12:25 corinna
0 siblings, 0 replies; only message in thread
From: corinna @ 2016-09-01 12:25 UTC (permalink / raw)
To: cygwin-apps-cvs
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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-01 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-01 12:25 [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-24-g1c6add3 corinna
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).