Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
98f8bb2e
Unverified
Commit
98f8bb2e
authored
Feb 19, 2020
by
Don Gagne
Committed by
GitHub
Feb 19, 2020
Browse files
Merge pull request #8364 from patrickelectric/gcc_version
QGCMavlink: Add GCC version check to use address-of-packed-member
parents
1c506047
6a7c02f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/QGCMAVLink.h
View file @
98f8bb2e
...
...
@@ -22,8 +22,15 @@
// Ignore warnings from mavlink headers for both GCC/Clang and MSVC
#ifdef __GNUC__
#if __GNUC__ > 8
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wall"
#endif
#else
#pragma warning(push, 0)
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment