mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 17:44:07 +08:00
GCC assumes that operator new never returns null, but throws an exception instead. This is defined by the C++ standard, and thus ok. But we disable exceptions with -fno-exceptions, so we break this assumption. GCC then goes ahead and removes some of our nullptr checks. This flag removes the assumption. This adds ~1.4kB to the binary size of the px4fmu-v4 target.