From 2a4eec48ebf5db83d2b2f8895b66b53f27037a91 Mon Sep 17 00:00:00 2001 From: MasFlam Date: Wed, 28 Aug 2024 07:28:27 +0200 Subject: [PATCH] fix: ignored-attributes warning --- source/matplot/util/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/matplot/util/common.cpp b/source/matplot/util/common.cpp index 58eb1ea6..557a3e5b 100644 --- a/source/matplot/util/common.cpp +++ b/source/matplot/util/common.cpp @@ -51,7 +51,7 @@ namespace matplot { } std::string run_and_get_output(const std::string &cmd) { - std::unique_ptr pipe(POPEN(cmd.c_str(), "r"), + std::unique_ptr pipe(POPEN(cmd.c_str(), "r"), PCLOSE); if (!pipe) { throw std::runtime_error("popen() failed!");