Browse Source
In some cases we want to call functions annotated with warn_unused_result but we know it's safe to ignore the return value. Prefixing with (void) used to work, but it doesn't do anymore on all versions of gcc and clang. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 This solution is a mix of the solutions provided in the above bug report and the one provided by Gustavo Sousa at https://github.com/ArduPilot/ardupilot/pull/4277#issuecomment-224957375master
Lucas De Marchi
9 years ago
1 changed files with 21 additions and 0 deletions
Loading…
Reference in new issue