Skip to content

Commit

Permalink
fix: ignored-attributes warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MasFlam authored Aug 28, 2024
1 parent 734e487 commit 2a4eec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/matplot/util/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace matplot {
}

std::string run_and_get_output(const std::string &cmd) {
std::unique_ptr<FILE, decltype(&PCLOSE)> pipe(POPEN(cmd.c_str(), "r"),
std::unique_ptr<FILE, int (*)(FILE *)> pipe(POPEN(cmd.c_str(), "r"),
PCLOSE);
if (!pipe) {
throw std::runtime_error("popen() failed!");
Expand Down

0 comments on commit 2a4eec4

Please sign in to comment.