Skip to content
Snippets Groups Projects
  • Matthias Grob's avatar
    f5f95635
    gtest: fix poisoned exit in compile flags · f5f95635
    Matthias Grob authored
    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"
    f5f95635
    History
    gtest: fix poisoned exit in compile flags
    Matthias Grob authored
    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"