Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/assert fix #26171

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Feature/assert fix #26171

merged 2 commits into from
Mar 20, 2024

Conversation

khancyr
Copy link
Contributor

@khancyr khancyr commented Feb 8, 2024

In file included from ../../libraries/AP_Math/control.h:4,
                 from ../../libraries/AC_WPNav/AC_WPNav_OA.cpp:1:
../../libraries/AP_Math/vector2.h: In member function ‘T& Vector2<T>::operator[](uint8_t)’:
../../libraries/AP_Math/vector2.h:123:9: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive]
  123 |         assert(i >= 0 && i < 2);
      |         ^~~~~~
compilation terminated due to -Wfatal-errors.

when building copter with waf configure --enable-math-check-indexes

@khancyr khancyr added the BUG label Feb 8, 2024
@tridge tridge merged commit 2319a12 into ArduPilot:master Mar 20, 2024
92 checks passed
@tridge tridge removed the BUG label Mar 20, 2024
@khancyr khancyr deleted the feature/assert-fix branch March 20, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants