Browse Source

HAL_SITL: fixed a build warning

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
249b339e6c
  1. 4
      libraries/AP_HAL_SITL/SITL_cmdline.cpp

4
libraries/AP_HAL_SITL/SITL_cmdline.cpp

@ -71,7 +71,9 @@ void SITL_State::_parse_command_line(int argc, char * const argv[]) @@ -71,7 +71,9 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
char *autotest_dir = NULL;
float speedup = 1.0f;
asprintf(&autotest_dir, SKETCHBOOK "/Tools/autotest");
if (asprintf(&autotest_dir, SKETCHBOOK "/Tools/autotest") <= 0) {
hal.scheduler->panic("out of memory");
}
signal(SIGFPE, _sig_fpe);
// No-op SIGPIPE handler

Loading…
Cancel
Save