Commit a6b95836 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

[lbtt]

Kill some warnings on Ubuntu.

* src/UserCommandReader.cc (UserCommandInterface): Explicitly
ignore the return code of system() to kill a warning.
* src/TestOperations.cc (generateBuchiAutomaton): Explicitly
ignore the return code of write() to kill a warning.
parent e20ba143
2010-01-21 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Kill some warnings on Ubuntu.
* src/UserCommandReader.cc (UserCommandInterface): Explicitly
ignore the return code of system() to kill a warning.
* src/TestOperations.cc (generateBuchiAutomaton): Explicitly
ignore the return code of write() to kill a warning.
2010-01-16 Guillaume Sadegh <sadegh@lrde.epita.fr>
Add a missing include.
......
......@@ -941,7 +941,7 @@ void generateBuchiAutomaton
/* setsid, dup2 or exec failed: write the value of errno to
* error_pipe */
write(error_pipe[1], static_cast<const void*>(&errno),
(void) write(error_pipe[1], static_cast<const void*>(&errno),
sizeof(int));
close(error_pipe[1]);
exit(0);
......
......@@ -536,7 +536,7 @@ void executeUserCommands()
}
else if (!external_command.empty())
{
system(external_command.c_str());
(void) system(external_command.c_str());
round_info.cout << '\n';
round_info.cout.flush();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment