disable a not helpful warning for VC++
git-svn-id: svn://10.0.0.236/trunk@69697 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -73,6 +73,13 @@ template <class CharT> class basic_nsAReadableString;
|
||||
template <class CharT> 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 CharT>
|
||||
class nsReadingIterator
|
||||
|
||||
@@ -73,6 +73,13 @@ template <class CharT> class basic_nsAReadableString;
|
||||
template <class CharT> 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 CharT>
|
||||
class nsReadingIterator
|
||||
|
||||
@@ -73,6 +73,13 @@ template <class CharT> class basic_nsAReadableString;
|
||||
template <class CharT> 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 CharT>
|
||||
class nsReadingIterator
|
||||
|
||||
Reference in New Issue
Block a user