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

Wrap the imported spm_srxl files to allow using pragmas to disable compiler warnings #28643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libraries/AP_RCProtocol/AP_RCProtocol_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
// for video TX configuration:
#if AP_VIDEOTX_ENABLED
#include <AP_VideoTX/AP_VideoTX.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc99-designator"
#include "spm_srxl.h"
#pragma clang diagnostic pop
#endif


Expand Down
3 changes: 3 additions & 0 deletions libraries/AP_RCProtocol/AP_RCProtocol_SRXL2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
#include <AP_HAL/utility/sparse-endian.h>
#include <AP_VideoTX/AP_VideoTX.h>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc99-designator"
#include "spm_srxl.h"
#pragma clang diagnostic pop

extern const AP_HAL::HAL& hal;
//#define SRXL2_DEBUG
Expand Down
Loading
Loading