diff --git a/mozilla/string/public/nsAReadableString.h b/mozilla/string/public/nsAReadableString.h index 6e9a34ead35..1af8054dd15 100644 --- a/mozilla/string/public/nsAReadableString.h +++ b/mozilla/string/public/nsAReadableString.h @@ -73,6 +73,13 @@ template class basic_nsAReadableString; template class basic_nsAWritableString; // ...because we sometimes use them as `out' params +#ifdef _MSC_VER + // Under VC++, at the highest warning level, we are overwhelmed with warnings + // about a possible error when |operator->()| is used against something that + // doesn't have members, e.g., a |PRUnichar|. This is to be expected with + // templates, so we disable the warning. + #pragma warning( disable: 4284 ) +#endif template class nsReadingIterator diff --git a/mozilla/xpcom/ds/nsAReadableString.h b/mozilla/xpcom/ds/nsAReadableString.h index 6e9a34ead35..1af8054dd15 100644 --- a/mozilla/xpcom/ds/nsAReadableString.h +++ b/mozilla/xpcom/ds/nsAReadableString.h @@ -73,6 +73,13 @@ template class basic_nsAReadableString; template class basic_nsAWritableString; // ...because we sometimes use them as `out' params +#ifdef _MSC_VER + // Under VC++, at the highest warning level, we are overwhelmed with warnings + // about a possible error when |operator->()| is used against something that + // doesn't have members, e.g., a |PRUnichar|. This is to be expected with + // templates, so we disable the warning. + #pragma warning( disable: 4284 ) +#endif template class nsReadingIterator diff --git a/mozilla/xpcom/string/public/nsAReadableString.h b/mozilla/xpcom/string/public/nsAReadableString.h index 6e9a34ead35..1af8054dd15 100644 --- a/mozilla/xpcom/string/public/nsAReadableString.h +++ b/mozilla/xpcom/string/public/nsAReadableString.h @@ -73,6 +73,13 @@ template class basic_nsAReadableString; template class basic_nsAWritableString; // ...because we sometimes use them as `out' params +#ifdef _MSC_VER + // Under VC++, at the highest warning level, we are overwhelmed with warnings + // about a possible error when |operator->()| is used against something that + // doesn't have members, e.g., a |PRUnichar|. This is to be expected with + // templates, so we disable the warning. + #pragma warning( disable: 4284 ) +#endif template class nsReadingIterator