shutting up copious warnings using /W4 on MSVC

This commit is contained in:
dveditz%netscape.com 1999-11-03 07:39:19 +00:00
parent acfa4a526a
commit 04c2ee43f4
4 changed files with 10 additions and 1 deletions

View File

@ -140,6 +140,8 @@
#define NSCAP_FEATURE_INLINE_STARTASSIGNMENT
// under VC++, we win by inlining StartAssignment
// but we need to diable the tons of bogus warnings
#pragma warning( disable: 4514 )
#endif
#define NSCAP_FEATURE_FACTOR_DESTRUCTOR

View File

@ -12,6 +12,11 @@
#define HAVE_CPP_NUMERIC_LIMITS
#endif
// under MSVC shut off copious warnings about unused in-lines
#ifdef _MSC_VER
#pragma warning( disable: 4514 )
#endif
#ifdef HAVE_CPP_NUMERIC_LIMITS
#include <limits>
#else

View File

@ -140,6 +140,8 @@
#define NSCAP_FEATURE_INLINE_STARTASSIGNMENT
// under VC++, we win by inlining StartAssignment
// but we need to diable the tons of bogus warnings
#pragma warning( disable: 4514 )
#endif
#define NSCAP_FEATURE_FACTOR_DESTRUCTOR

View File

@ -251,7 +251,7 @@ public:
void operator += (const char* inString);
nsSimpleCharString operator + (const char* inString) const;
char operator [](int i) const { return mData ? mData->mString[i] : 0; }
char operator [](int i) const { return mData ? mData->mString[i] : '\0'; }
char& operator [](int i)
{
if (i >= (int)Length())