From 937ea1fdff169dc47b08fb343175a4f22556fefb Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Sun, 14 May 2000 23:33:05 +0000 Subject: [PATCH] disable a not helpful warning for VC++ git-svn-id: svn://10.0.0.236/trunk@69697 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/public/nsAReadableString.h | 7 +++++++ mozilla/xpcom/ds/nsAReadableString.h | 7 +++++++ mozilla/xpcom/string/public/nsAReadableString.h | 7 +++++++ 3 files changed, 21 insertions(+) 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