pipestream: Fix unused parameter warning
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 30 Dec 2025 09:08:21 +0000 (10:08 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 31 Dec 2025 11:11:25 +0000 (12:11 +0100)
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

index a5e4a00..8c15456 100644 (file)
@@ -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");