Index: uspace/lib/cpp/include/internal/trycatch.hpp
===================================================================
--- uspace/lib/cpp/include/internal/trycatch.hpp	(revision 5735b111658877f228a008dd9c4a97ca2d4c7a7b)
+++ uspace/lib/cpp/include/internal/trycatch.hpp	(revision 5df049172e3d6d30377d1b77b2783ba79bfde602)
@@ -96,9 +96,4 @@
 #define try if constexpr (::std::aux::try_blocks_allowed)
 
-/**
- * Since we cannot use the thrown object in this macro,
- * we have to silence compiler warnings on it by
- * using (void)thrown-object.
- */
 #define throw \
     do {\
@@ -106,5 +101,5 @@
         printf("[EXCEPTION] Thrown at %s:%d\n", __FILE__, __LINE__); \
         LIBCPP_EXCEPTION_HANDLE_THROW \
-    } while (false); (void)
+    } while (false);
 
 #define catch(expr) \
@@ -114,5 +109,5 @@
         LIBCPP_EXCEPTION_HANDLE_CATCH \
     } \
-    if constexpr (expr = {}; ::std::aux::catch_blocks_allowed)
+    if constexpr (::std::aux::catch_blocks_allowed)
 
 /**
