linux之写C代码出现warning: format not a string literal and no format arguments [-Wformat-security]

183 阅读1分钟

今天编写c语言代码的时候出现下面错误

 

解决办法:

把printf("length is %d" + length);改成

printf("length is %d", length);

 

以后特么不要 像傻逼换这种错误,日来狗,写java代码写习惯了,不能动不动就是+。

创作打卡挑战赛

赢取流量/现金/CSDN周边激励大奖