mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 08:40:30 +08:00
gtest: fix poisoned exit in compile flags
visibility.h is included globally in PX4 via cmake compile flags. It contains poisoning the exit() command which is used by gtest to close the test application. Removing the flag for gtest compilation fixes the compile error: gtest.cc:4757:7: error: attempt to use poisoned "exit"
This commit is contained in:
1 parent
8eb0d66279
commit
f5f95635b4
2 files changed
+7
-1
No files matched your search
@@ -86,7 +86,7 @@
|
||||
#ifdef __cplusplus
|
||||
#include <cstdlib>
|
||||
#endif
|
||||
//#pragma GCC poison exit
|
||||
#pragma GCC poison exit
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
Reference in new issue
Block a user