020819存疑点&error&warning

ERROR%WARNING

1.assignment in condition

  字面意识是条件转让,但是我并不知道条件转让是什么意思。网上查的结果如下:http://blog.sina.com.cn/s/blog_95ee1434010134ce.html

  学习了

2.variable "tcphdr" was set but never use

  以上两个是之前的文件里一直都有的两种警告(忘了说明,我现在搞A板,用的是之前领导发的工程),我由于不大会改也不敢改,所以一直放着没动。

3.extra text after expected end of preprocessing directive

4.white space is required between the macro name"_PWM" and its replacement text.

  这两个警告呢也是稀里糊涂的就来了,也稀里糊涂的就没了,不过3网上还是能查到的,4就没有那么清晰,以后如果再用到会继续记录。

5.expected a ")"

  旧程序:void TIM3_PWM_Init(unsigned arr,unsigned psc);

  新程序:void TIM3_PWM_Init(int arr,int psc);

  这个就是典型的unsigned没有定义过啊,除了这个问题连类型都没有指定啊。在这么简单的一个语句里我犯了两个傻叉一样的错误你说我厉害不厉害?

原文地址:https://www.cnblogs.com/Jane-share/p/11290410.html