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

Update clang pragma that is causing trouble #28490

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

Conversation

katzfey
Copy link
Contributor

@katzfey katzfey commented Oct 29, 2024

Update a clang pragma to check for the proper version of clang that introduces the warning.

@@ -1,10 +1,5 @@
#include "Copter.h"

#pragma GCC diagnostic push
#if defined(__clang__)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This warning was added in Clang v14. Better to update the check rather than remove it, e.g.:

#if defined(__clang_major__) && __clang_major__ >= 14

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thanks, I will update the check then instead of removing it.

…t introduces the warning

AP_Arming: Update clang pragma to check for the version of clang that introduces the warning
@katzfey katzfey force-pushed the pr-fix-qurt-clang-compiler-warning branch from 75813b1 to eddf8c1 Compare October 29, 2024 03:58
@katzfey katzfey changed the title Remove clang pragma that is causing trouble Update clang pragma that is causing trouble Oct 29, 2024
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.

2 participants