Skip to content

Commit 2a4eec4

Browse files
authored
fix: ignored-attributes warning
1 parent 734e487 commit 2a4eec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/matplot/util/common.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace matplot {
5151
}
5252

5353
std::string run_and_get_output(const std::string &cmd) {
54-
std::unique_ptr<FILE, decltype(&PCLOSE)> pipe(POPEN(cmd.c_str(), "r"),
54+
std::unique_ptr<FILE, int (*)(FILE *)> pipe(POPEN(cmd.c_str(), "r"),
5555
PCLOSE);
5656
if (!pipe) {
5757
throw std::runtime_error("popen() failed!");

0 commit comments

Comments
 (0)