Commit 8daee549 authored by Daniel Agar's avatar Daniel Agar

travis-ci add CONFIG+=WarningsAsErrorsOn

parent 474230af
...@@ -50,7 +50,7 @@ install: ...@@ -50,7 +50,7 @@ install:
fi fi
before_script: qmake -r qgroundcontrol.pro CONFIG+=${CONFIG} -spec ${SPEC} before_script: qmake -r qgroundcontrol.pro CONFIG+=${CONFIG} CONFIG+=WarningsAsErrorsOn -spec ${SPEC}
script: script:
- echo 'Building QGroundControl' && echo -en 'travis_fold:start:script.1\\r' - echo 'Building QGroundControl' && echo -en 'travis_fold:start:script.1\\r'
- make -j4 - make -j4
......
...@@ -624,7 +624,7 @@ void RadioComponentController::_inputFlapsDetect(enum rcCalFunctions function, i ...@@ -624,7 +624,7 @@ void RadioComponentController::_inputFlapsDetect(enum rcCalFunctions function, i
void RadioComponentController::_resetInternalCalibrationValues(void) void RadioComponentController::_resetInternalCalibrationValues(void)
{ {
// Set all raw channels to not reversed and center point values // Set all raw channels to not reversed and center point values
for (size_t i=0; i<_chanMax; i++) { for (int i=0; i<_chanMax; i++) {
struct ChannelInfo* info = &_rgChannelInfo[i]; struct ChannelInfo* info = &_rgChannelInfo[i];
info->function = rcCalFunctionMax; info->function = rcCalFunctionMax;
info->reversed = false; info->reversed = false;
...@@ -673,7 +673,7 @@ void RadioComponentController::_setInternalCalibrationValuesFromParameters(void) ...@@ -673,7 +673,7 @@ void RadioComponentController::_setInternalCalibrationValuesFromParameters(void)
{ {
// Initialize all function mappings to not set // Initialize all function mappings to not set
for (size_t i=0; i<_chanMax; i++) { for (int i=0; i<_chanMax; i++) {
struct ChannelInfo* info = &_rgChannelInfo[i]; struct ChannelInfo* info = &_rgChannelInfo[i];
info->function = rcCalFunctionMax; info->function = rcCalFunctionMax;
} }
...@@ -865,7 +865,7 @@ void RadioComponentController::_stopCalibration(void) ...@@ -865,7 +865,7 @@ void RadioComponentController::_stopCalibration(void)
void RadioComponentController::_rcCalSaveCurrentValues(void) void RadioComponentController::_rcCalSaveCurrentValues(void)
{ {
qCDebug(RadioComponentControllerLog) << "_rcCalSaveCurrentValues"; qCDebug(RadioComponentControllerLog) << "_rcCalSaveCurrentValues";
for (unsigned i = 0; i < _chanMax; i++) { for (int i = 0; i < _chanMax; i++) {
_rcValueSave[i] = _rcRawValue[i]; _rcValueSave[i] = _rcRawValue[i];
} }
} }
......
...@@ -206,7 +206,7 @@ void FirmwareUpgradeController::_getFirmwareFile(FirmwareType_t firmwareType) ...@@ -206,7 +206,7 @@ void FirmwareUpgradeController::_getFirmwareFile(FirmwareType_t firmwareType)
// Select the firmware set based on board type // Select the firmware set based on board type
const DownloadLocationByFirmwareType_t* prgFirmware; const DownloadLocationByFirmwareType_t* prgFirmware;
size_t crgFirmware; size_t crgFirmware = 0;
switch (_bootloaderBoardID) { switch (_bootloaderBoardID) {
case Bootloader::boardIDPX4FMUV1: case Bootloader::boardIDPX4FMUV1:
......
...@@ -411,7 +411,7 @@ void JoystickConfigController::_inputCenterWait(Joystick::AxisFunction_t functio ...@@ -411,7 +411,7 @@ void JoystickConfigController::_inputCenterWait(Joystick::AxisFunction_t functio
void JoystickConfigController::_resetInternalCalibrationValues(void) void JoystickConfigController::_resetInternalCalibrationValues(void)
{ {
// Set all raw axiss to not reversed and center point values // Set all raw axiss to not reversed and center point values
for (size_t i=0; i<_axisMax; i++) { for (int i=0; i<_axisMax; i++) {
struct AxisInfo* info = &_rgAxisInfo[i]; struct AxisInfo* info = &_rgAxisInfo[i];
info->function = Joystick::maxFunction; info->function = Joystick::maxFunction;
info->reversed = false; info->reversed = false;
...@@ -435,7 +435,7 @@ void JoystickConfigController::_setInternalCalibrationValuesFromSettings(void) ...@@ -435,7 +435,7 @@ void JoystickConfigController::_setInternalCalibrationValuesFromSettings(void)
// Initialize all function mappings to not set // Initialize all function mappings to not set
for (size_t i=0; i<_axisMax; i++) { for (int i=0; i<_axisMax; i++) {
struct AxisInfo* info = &_rgAxisInfo[i]; struct AxisInfo* info = &_rgAxisInfo[i];
info->function = Joystick::maxFunction; info->function = Joystick::maxFunction;
} }
...@@ -580,7 +580,7 @@ void JoystickConfigController::_stopCalibration(void) ...@@ -580,7 +580,7 @@ void JoystickConfigController::_stopCalibration(void)
void JoystickConfigController::_calSaveCurrentValues(void) void JoystickConfigController::_calSaveCurrentValues(void)
{ {
qCDebug(JoystickConfigControllerLog) << "_calSaveCurrentValues"; qCDebug(JoystickConfigControllerLog) << "_calSaveCurrentValues";
for (unsigned i = 0; i < _axisMax; i++) { for (int i = 0; i < _axisMax; i++) {
_axisValueSave[i] = _axisRawValue[i]; _axisValueSave[i] = _axisRawValue[i];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment