Skip to content

Commit

Permalink
trying to get the ignored diagnostic flag correct
Browse files Browse the repository at this point in the history
  • Loading branch information
eprager0 committed May 13, 2024
1 parent da68e88 commit eeaa022
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ namespace airlib
#pragma warning(disable : 4996)
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=deprecated"
#pragma GCC diagnostic ignored "-Wdeprecated"
#endif
connection->subscribe([=](std::shared_ptr<mavlinkcom::MavLinkConnection> connection_val, const mavlinkcom::MavLinkMessage& msg) {
unused(connection_val);
Expand Down Expand Up @@ -1331,7 +1331,7 @@ namespace airlib
#pragma warning(disable : 4996)
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=deprecated"
#pragma GCC diagnostic ignored "-Wdeprecated"
#endif
connection_->subscribe([=](std::shared_ptr<mavlinkcom::MavLinkConnection> connection, const mavlinkcom::MavLinkMessage& msg) {
unused(connection);
Expand Down Expand Up @@ -1457,7 +1457,7 @@ namespace airlib
#pragma warning(disable : 4996)
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=deprecated"
#pragma GCC diagnostic ignored "-Wdeprecated"
#endif
mavcon->subscribe([=](std::shared_ptr<mavlinkcom::MavLinkConnection> connection, const mavlinkcom::MavLinkMessage& msg) {
unused(connection);
Expand Down Expand Up @@ -1536,7 +1536,7 @@ namespace airlib
#pragma warning(disable : 4996)
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror=deprecated"
#pragma GCC diagnostic ignored "-Wdeprecated"
#endif
// start listening to the HITL connection.
connection_->subscribe([=](std::shared_ptr<mavlinkcom::MavLinkConnection> connection, const mavlinkcom::MavLinkMessage& msg) {
Expand Down

0 comments on commit eeaa022

Please sign in to comment.