From d869e551b645a1a0ca5bc1dc5a18abb347994d0e Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 30 Dec 2025 10:08:21 +0100 Subject: [PATCH] pipestream: Fix unused parameter warning Original warning: src/pipestream.cpp:493:32: error: unused parameter '_ignored_flags' [-Werror=unused-parameter] Fixed by adding (void)_ignored_flags; cast to suppress the warning. --- src/pipestream.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/pipestream.cpp b/src/pipestream.cpp index a5e4a00..8c15456 100644 --- a/src/pipestream.cpp +++ b/src/pipestream.cpp @@ -495,6 +495,8 @@ inpipebuf::inpipebuf(const std::string& command, , status_set (NULL) , exit_status (NULL) { + // Suppress unused parameter warning + (void)_ignored_flags; pipe = popen (command.c_str(), "r"); if (pipe == NULL) throw EXCEPTION (pipestream_error, "can't open program or permission denied"); -- 1.7.1