Skip to content

Commit

Permalink
Merge pull request #1865 from scoutdi/warnings
Browse files Browse the repository at this point in the history
Fix / suppress some build warnings
  • Loading branch information
vooon authored Jun 12, 2023
2 parents 5c5663d + 497eb5b commit 4a8cd45
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions libmavconn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ catkin_package(

include_directories(
include
SYSTEM
${CMAKE_CURRENT_BINARY_DIR}/catkin_generated/include
${Boost_INCLUDE_DIRS}
${mavlink_INCLUDE_DIRS}
Expand Down
1 change: 1 addition & 0 deletions mavros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ catkin_package(

include_directories(
include
SYSTEM
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${mavlink_INCLUDE_DIRS}
Expand Down
2 changes: 1 addition & 1 deletion mavros/include/mavros/mavlink_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ class MavlinkDiag : public diagnostic_updater::DiagnosticTask
unsigned int last_drop_count;
std::atomic<bool> is_connected;
};
}; // namespace mavros
} // namespace mavros

2 changes: 1 addition & 1 deletion mavros/src/lib/mavlink_diag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MavlinkDiag::MavlinkDiag(std::string name) :
diagnostic_updater::DiagnosticTask(name),
last_drop_count(0),
is_connected(false)
{ };
{ }

void MavlinkDiag::run(diagnostic_updater::DiagnosticStatusWrapper &stat)
{
Expand Down
1 change: 1 addition & 0 deletions mavros_extras/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ catkin_package(
###########

include_directories(
SYSTEM
${catkin_INCLUDE_DIRS}
${mavlink_INCLUDE_DIRS}
)
Expand Down
8 changes: 4 additions & 4 deletions mavros_extras/src/plugins/landing_target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ class LandingTargetPlugin : public plugin::PluginBase,
public:
LandingTargetPlugin() :
nh("~landing_target"),
tf_rate(10.0),
send_tf(true),
listen_tf(false),
tf_rate(10.0),
listen_lt(false),
mav_frame("LOCAL_NED"),
target_size_x(1.0),
target_size_y(1.0),
image_width(640),
image_height(480),
fov_x(2.0071286398),
fov_y(2.0071286398),
focal_length(2.8),
image_width(640),
image_height(480),
mav_frame("LOCAL_NED"),
land_target_type("VISION_FIDUCIAL")
{ }

Expand Down
4 changes: 2 additions & 2 deletions mavros_extras/src/plugins/mount_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ class MountControlPlugin : public plugin::PluginBase {
public:
MountControlPlugin() : PluginBase(),
nh("~"),
mount_diag("Mount"),
mount_nh("~mount_control")
mount_nh("~mount_control"),
mount_diag("Mount")
{ }

void initialize(UAS &uas_) override
Expand Down
2 changes: 1 addition & 1 deletion mavros_extras/src/plugins/wheel_odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class WheelOdometryPlugin : public plugin::PluginBase {

WheelOdometryPlugin() : PluginBase(),
wo_nh("~wheel_odometry"),
count(0),
odom_mode(OM::NONE),
count(0),
raw_send(false),
twist_send(false),
tf_send(false),
Expand Down
1 change: 1 addition & 0 deletions test_mavros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ catkin_package(

include_directories(
include
SYSTEM
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
Expand Down

0 comments on commit 4a8cd45

Please sign in to comment.