aports/community/cppcheck/feenableexcept.patch
2024-05-20 13:38:01 +00:00

15 lines
460 B
Diff

diff --git a/test/signal/test-signalhandler.cpp b/test/signal/test-signalhandler.cpp
index 023137c2a..92b3fe8af 100644
--- a/test/signal/test-signalhandler.cpp
+++ b/test/signal/test-signalhandler.cpp
@@ -46,9 +46,6 @@
/*static*/ void my_fpe()
{
-#if !defined(__APPLE__)
- feenableexcept(FE_ALL_EXCEPT); // TODO: check result
-#endif
std::feraiseexcept(FE_UNDERFLOW | FE_DIVBYZERO); // TODO: check result
// TODO: to generate this via code
}