vc++ warning suppression

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-01-24 21:36:58 +00:00
commit eeb67079e6
2 changed files with 14 additions and 8 deletions

View file

@ -8,6 +8,10 @@ class FullError {
FullError(int m) : maxsize(m) { }
};
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
template<typename T> class Queue {
int maxsize;
T *items;
@ -44,8 +48,7 @@ template<typename T> class Queue {
};
#if defined(_MSC_VER)
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif