1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Prevent some compiler warnings treated as errors during RELEASE build (possible use of uninitialized variables - CodeSourcery under Windows build system). It may be done with some #pragma as well, but this way is more portable.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2132 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
osnwt 2010-11-21 13:09:05 +00:00 committed by osnwt
parent f99f53a127
commit ed49f7fc40
2 changed files with 5 additions and 3 deletions

View File

@ -118,7 +118,7 @@ static void actuatorTask(void* parameters)
UAVObjEvent ev;
portTickType lastSysTime;
portTickType thisSysTime;
float dT;
float dT = 0.0f;
ActuatorCommandData command;
ActuatorSettingsData settings;

View File

@ -194,7 +194,8 @@ int32_t PIOS_PWM_Get(int8_t Channel)
*/
void TIM3_IRQHandler(void)
{
int32_t i;
/* Zero value always will be changed but this prevents compiler warning */
int32_t i = 0;
/* Do this as it's more efficient */
if (TIM_GetITStatus(PIOS_PWM_TIM_PORT[4], PIOS_PWM_TIM_CCR[4]) == SET) {
@ -266,7 +267,8 @@ void TIM3_IRQHandler(void)
*/
void TIM1_CC_IRQHandler(void)
{
int32_t i;
/* Zero value always will be changed but this prevents compiler warning */
int32_t i = 0;
/* Do this as it's more efficient */
if (TIM_GetITStatus(PIOS_PWM_TIM_PORT[0], PIOS_PWM_TIM_CCR[0]) == SET) {