Add -Wall to the Makefle and fix a few compiler warrnings for

depreceated C++

svn path=/trunk/; revision=8625
This commit is contained in:
Steven Edwards 2004-03-10 18:57:36 +00:00
parent b2a9c5d1de
commit c29a4bda2e
2 changed files with 7 additions and 10 deletions

View file

@ -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 PATH_TO_TOP=../../../reactos
@ -10,7 +10,7 @@ TARGET_NAME = telnet
TARGET_SDKLIBS = ws2_32.a TARGET_SDKLIBS = ws2_32.a
TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API TARGET_CPPFLAGS = -D__REACTOS__ -D__USE_W32API -Wall
TARGET_GCCLIBS = stdc++ TARGET_GCCLIBS = stdc++

View file

@ -18,6 +18,7 @@ template <class T>
class TArrayAsVector : public vector<T> { class TArrayAsVector : public vector<T> {
private: private:
const unsigned int growable; const unsigned int growable;
typedef size_t size_type;
const size_type lowerbound; const size_type lowerbound;
public: public:
TArrayAsVector(size_type upper, TArrayAsVector(size_type upper,
@ -128,15 +129,11 @@ public:
#ifdef _MSC_VER #ifdef _MSC_VER
_Destroy(begin(), end()); _Destroy(begin(), end());
_Last = _First; _Last = _First;
#else destroy(begin( ), end( ));
// destroy(begin( ), end( )); #elif defined (__CYGWIN__) || defined (__MINGW32__)
#ifdef __CYGWIN__
_M_finish = _M_start; _M_finish = _M_start;
#endif #else /* Anything else */
// finish = start; /* Removed for ReactOS */ finish = start;
#ifdef __REACTOS__
_M_finish = _M_start;
#endif
#endif #endif
} }