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
25edde59
Commit
25edde59
authored
Nov 18, 2014
by
Don Gagne
Browse files
Fix compiler warning bugs
parent
006b4d36
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/FlightModesComponent.cc
View file @
25edde59
...
...
@@ -143,7 +143,7 @@ QList<QStringList> FlightModesComponent::summaryItems(void) const
// Switch is not mapped
if
(
i
==
0
)
{
// Mode switch is required
Q_ASSERT
(
switchList
[
0
].
param
==
"RC_MAP_MODE_SW"
);
Q_ASSERT
(
strcmp
(
switchList
[
0
].
param
,
"RC_MAP_MODE_SW"
)
==
0
)
;
row
<<
"Setup required"
;
}
else
{
row
<<
"None"
;
...
...
src/VehicleSetup/SetupView.cc
View file @
25edde59
...
...
@@ -118,7 +118,9 @@ void SetupView::_clearComponentButtons(void)
QLayoutItem
*
item
;
while
((
item
=
_ui
->
componentButtonLayout
->
itemAt
(
0
)))
{
VehicleComponentButton
*
componentButton
=
dynamic_cast
<
VehicleComponentButton
*>
(
item
->
widget
());
// Make sure this is really a VehicleComponentButton. If it isn't the UI has changed but the code hasn't.
Q_ASSERT
(
componentButton
);
Q_UNUSED
(
componentButton
);
_ui
->
componentButtonLayout
->
removeWidget
(
item
->
widget
());
}
}
...
...
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