From 994e3e70926d711f763897c7f5a4bf009a7f5cd1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 29 Mar 2018 12:51:46 +1100 Subject: [PATCH] SITL: SIM_Vicon: fix compiler warning --- libraries/SITL/SIM_Vicon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Vicon.cpp b/libraries/SITL/SIM_Vicon.cpp index aa7449614d..bd8e4b9294 100644 --- a/libraries/SITL/SIM_Vicon.cpp +++ b/libraries/SITL/SIM_Vicon.cpp @@ -29,7 +29,9 @@ using namespace SITL; Vicon::Vicon() { int tmp[2]; - pipe(tmp); + if (pipe(tmp) == -1) { + AP_HAL::panic("pipe() failed"); + } fd_my_end = tmp[1]; fd_their_end = tmp[0];