[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.
This commit is contained in:
parent
e20ba143bb
commit
a6b9583628
3 changed files with 28 additions and 19 deletions
|
|
@ -1,3 +1,12 @@
|
|||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue