mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-09 22:02:10 +02:00
Check the return value from pipe(2)
Starting from GCC 10 not checking this will produce a warning.
This commit is contained in:
@@ -78,6 +78,11 @@ int __cdecl main(int argc, char* argv[]) {
|
||||
<< std::endl;
|
||||
std::cerr << error.what() << std::endl;
|
||||
|
||||
return 0;
|
||||
} catch (const std::system_error& error) {
|
||||
std::cerr << "Could not create pipe:" << std::endl;
|
||||
std::cerr << error.what() << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user