SITL: SIM_Vicon: fix compiler warning

This commit is contained in:
Peter Barker 2018-03-29 12:51:46 +11:00 committed by Randy Mackay
parent cbd2756467
commit 994e3e7092
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ using namespace SITL;
Vicon::Vicon() Vicon::Vicon()
{ {
int tmp[2]; int tmp[2];
pipe(tmp); if (pipe(tmp) == -1) {
AP_HAL::panic("pipe() failed");
}
fd_my_end = tmp[1]; fd_my_end = tmp[1];
fd_their_end = tmp[0]; fd_their_end = tmp[0];