代码:
int main(void)
{
u32 a=0;
u16 b = 0;
RCC_Configuration();
GPIO_Configuration();
ADC_Configuration();
while(1)
{
if(a++ >= 2000000)
{
a = 0;
b = (u16) ADC1 -> DR;
}
}
}
为什么会出现警告啊,提示以下警告:
src\main.c(10): warning: #550-D: variable "b" was set but never used,求各位大大讲解这是什么原因啊! |