From a7d67f8a941960206eb20cb570d00e3785967767 Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 30 Sep 2026 10:10:58 +0100 Subject: [PATCH] remove unused exception parameter in Popen::execute_process ``` subprocess.h:1219:30: warning: unused exception parameter 'exp' [-Wunused-exception-parameter] 1219 | } catch (std::exception& exp) { | ^~~ 1 warning generated. ``` --- cpp-subprocess/subprocess.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp-subprocess/subprocess.hpp b/cpp-subprocess/subprocess.hpp index 5ff76fa..5943d7a 100644 --- a/cpp-subprocess/subprocess.hpp +++ b/cpp-subprocess/subprocess.hpp @@ -1820,7 +1820,7 @@ inline void Popen::execute_process() noexcept(false) // Throw whatever information we have about child failure throw CalledProcessError(err_buf, retcode); } - } catch (std::exception& exp) { + } catch (std::exception&) { stream_.cleanup_fds(); throw; }