AnsweredAssumed Answered

Inconsistent Warning Message C2705

Question asked by Ray Hall on May 2, 2016
Latest reply on May 2, 2016 by Fiona Kuang

Hello,

 

I am getting this warning only for some of basically the same code. "Warning C2750: Possible loss of data"

I can disable the message, but would prefer not to do this. What is wrong ?

 

TIM_TFLG1 &= ~(1<<TIM_TFLG1_C0F_MASK); // No warning

TIM_TFLG1 &= ~(1<<TIM_TFLG1_C1F_MASK); // No warning

TIM_TFLG1 &= ~(1<<TIM_TFLG1_C2F_MASK); // No warning

 

TIM_TFLG1 &= ~(1<<TIM_TFLG1_C3F_MASK); // Get Warning C2705

TIM_TFLG1 &= ~(1<<TIM_TFLG1_C4F_MASK); // Get Warning C2705

 

TIM_TFLG1 &= ~(1<<TIM_TFLG1_C5F_MASK); // No warning

 

The micro is the S12XE.

 

Ray.

Outcomes