mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
shutting up copious warnings using /W4 on MSVC
This commit is contained in:
parent
acfa4a526a
commit
04c2ee43f4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user