Revert "Silence some unreachable code warnings on MSVC"

This reverts commit 2ab4883439.

It apparently didn't work at silencing anything.
This commit is contained in:
Chris Robinson
2019-09-20 14:40:12 -07:00
parent 2ab4883439
commit 2ae1f8b8b6
-12
View File
@@ -31,18 +31,6 @@ public:
#define START_API_FUNC try
#ifndef _MSC_VER
#define END_API_FUNC catch(...) { std::terminate(); }
#else
/* VS 2015 complains that some of these catch statements are unreachable code,
* due to the function body not able to throw anything. While technically true,
* it's preferable to mark API functions just in case that ever changes, so
* silence that warning.
*/
#define END_API_FUNC __pragma(warning(push)) \
__pragma(warning(disable : 4702)) \
catch(...) { std::terminate(); } \
__pragma(warning(pop))
#endif
#endif /* ALEXCPT_H */