From c29a4bda2e19aa0bce6bccf082761427e101a837 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Wed, 10 Mar 2004 18:57:36 +0000 Subject: [PATCH] Add -Wall to the Makefle and fix a few compiler warrnings for depreceated C++ svn path=/trunk/; revision=8625 --- rosapps/net/telnet/Makefile | 4 ++-- rosapps/net/telnet/src/stl_bids.h | 13 +++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/rosapps/net/telnet/Makefile b/rosapps/net/telnet/Makefile index c638b738380..dce43a92de5 100644 --- a/rosapps/net/telnet/Makefile +++ b/rosapps/net/telnet/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.4 2004/01/12 22:45:53 sedwards Exp $ +# $Id: Makefile,v 1.5 2004/03/10 18:57:35 sedwards Exp $ PATH_TO_TOP=../../../reactos @@ -10,7 +10,7 @@ TARGET_NAME = telnet TARGET_SDKLIBS = ws2_32.a -TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API +TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API -Wall TARGET_GCCLIBS = stdc++ diff --git a/rosapps/net/telnet/src/stl_bids.h b/rosapps/net/telnet/src/stl_bids.h index cadf32a751b..e95493202a7 100644 --- a/rosapps/net/telnet/src/stl_bids.h +++ b/rosapps/net/telnet/src/stl_bids.h @@ -18,6 +18,7 @@ template class TArrayAsVector : public vector { private: const unsigned int growable; + typedef size_t size_type; const size_type lowerbound; public: TArrayAsVector(size_type upper, @@ -128,15 +129,11 @@ public: #ifdef _MSC_VER _Destroy(begin(), end()); _Last = _First; -#else -// destroy(begin( ), end( )); -#ifdef __CYGWIN__ + destroy(begin( ), end( )); +#elif defined (__CYGWIN__) || defined (__MINGW32__) _M_finish = _M_start; -#endif -// finish = start; /* Removed for ReactOS */ -#ifdef __REACTOS__ - _M_finish = _M_start; -#endif +#else /* Anything else */ + finish = start; #endif }