Skip to content

Commit 2fef879

Browse files
committed
Fix compiler warning
1 parent 78933b8 commit 2fef879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Generators/src/GeneratorFromFile.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ namespace
361361
std::vector<std::string> executeCommand(const std::string& command)
362362
{
363363
std::vector<std::string> result;
364-
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(command.c_str(), "r"), pclose);
364+
std::unique_ptr<FILE, int (*)(FILE*)> pipe(popen(command.c_str(), "r"), pclose);
365365
if (!pipe) {
366366
throw std::runtime_error("Failed to open pipe");
367367
}

0 commit comments

Comments
 (0)