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:
Alexandre Duret-Lutz 2010-01-21 15:58:18 +01:00
parent e20ba143bb
commit a6b9583628
3 changed files with 28 additions and 19 deletions

View file

@ -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> 2010-01-16 Guillaume Sadegh <sadegh@lrde.epita.fr>
Add a missing include. Add a missing include.

View file

@ -941,7 +941,7 @@ void generateBuchiAutomaton
/* setsid, dup2 or exec failed: write the value of errno to /* setsid, dup2 or exec failed: write the value of errno to
* error_pipe */ * error_pipe */
write(error_pipe[1], static_cast<const void*>(&errno), (void) write(error_pipe[1], static_cast<const void*>(&errno),
sizeof(int)); sizeof(int));
close(error_pipe[1]); close(error_pipe[1]);
exit(0); exit(0);

View file

@ -536,7 +536,7 @@ void executeUserCommands()
} }
else if (!external_command.empty()) else if (!external_command.empty())
{ {
system(external_command.c_str()); (void) system(external_command.c_str());
round_info.cout << '\n'; round_info.cout << '\n';
round_info.cout.flush(); round_info.cout.flush();
} }