mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL_SITL: correct ubsan compilation
This commit is contained in:
parent
cac3a2216d
commit
34188e892f
@ -14,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <AP_RCProtocol/AP_RCProtocol.h>
|
#include <AP_RCProtocol/AP_RCProtocol.h>
|
||||||
#ifdef UBSAN_ENABLED
|
#ifdef UBSAN_ENABLED
|
||||||
|
#include <fcntl.h>
|
||||||
#include <sanitizer/asan_interface.h>
|
#include <sanitizer/asan_interface.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -61,6 +62,7 @@ void __ubsan_get_current_report_data(const char **OutIssueKind,
|
|||||||
const char **OutFilename, unsigned *OutLine,
|
const char **OutFilename, unsigned *OutLine,
|
||||||
unsigned *OutCol, char **OutMemoryAddr);
|
unsigned *OutCol, char **OutMemoryAddr);
|
||||||
|
|
||||||
|
void __ubsan_on_report();
|
||||||
void __ubsan_on_report()
|
void __ubsan_on_report()
|
||||||
{
|
{
|
||||||
static int fd = -1;
|
static int fd = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user