diff options
author | rpj <rpj> | 2011-03-07 13:50:43 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-07 13:50:43 +0000 |
commit | 2c51bb3337275e134e8c40db6dd4eea9407c8bca (patch) | |
tree | 272b3c7662394932a6a095c3d083c15b2eef6d58 /ptw32_throw.c | |
parent | 247469c6f6a16681491ac3ee213e57efcdda6153 (diff) |
Fix C++ exception throw warnings
Diffstat (limited to 'ptw32_throw.c')
-rw-r--r-- | ptw32_throw.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ptw32_throw.c b/ptw32_throw.c index 20068a7..cd8f874 100644 --- a/ptw32_throw.c +++ b/ptw32_throw.c @@ -46,8 +46,19 @@ * 'implicit' POSIX threads for each of the possible language modes (C, * C++, and SEH). */ +#ifdef _MSC_VER +/* + * Ignore the warning: + * "C++ exception specification ignored except to indicate that + * the function is not __declspec(nothrow)." + */ +#pragma warning(disable:4290) +#endif void ptw32_throw (DWORD exception) +#ifdef __CLEANUP_CXX + throw(ptw32_exception_cancel,ptw32_exception_exit) +#endif { /* * Don't use pthread_self() to avoid creating an implicit POSIX thread handle |