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

Remove an unused array #28632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katzfey
Copy link
Contributor

@katzfey katzfey commented Nov 15, 2024

Remove unused array. This array was causing the following Qurt compiler warning:

In file included from ../../libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp:32:
../../libraries/AP_RCProtocol/spm_srxl.h:61:5: warning: array designators are a C99 extension [-Wc99-designator]
[SrxlDevType_None] = 0x00,
^~~~~~~~~~~~~~~~~~
1 warning generated.

That is pointing out that array designators are not part of the C++ standard. They aren't even part of the C99 standard, they are an extension. So, they probably shouldn't be used in ArduPilot. It turns out that that array isn't even used anywhere so I just deleted it.

@katzfey
Copy link
Contributor Author

katzfey commented Nov 15, 2024

Take a look at PR28643: #28643

If that is a more reasonable way to deal with these compiler warnings then I can close this PR.

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.

1 participant