常见警告1

Posted llingfeng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常见警告1相关的知识,希望对你有一定的参考价值。

///////////这是在.c文件中

*** Using Compiler ‘V5.06 update 3 (build 300)‘, folder: ‘D:MDK5ARMARMCCBin‘
Build target ‘Template‘
compiling key.c...
..HARDWAREKEYkey.c(66): warning: #1-D: last line of file ends without a newline
}
..HARDWAREKEYkey.c: 1 warning, 0 errors
linking...
Program Size: Code=2072 RO-data=336 RW-data=32 ZI-data=1832
FromELF: creating hex file...
"..OBJkey.axf" - 0 Error(s), 1 Warning(s).
Build Time Elapsed: 00:00:01

 

///////////////////////////分界线////////////////////////////////

#1-D: last line of file ends without a newline

最后一行缺少换行符

 

 

///////////这是在.h文件中

*** Using Compiler ‘V5.06 update 3 (build 300)‘, folder: ‘D:MDK5ARMARMCCBin‘
Build target ‘Template‘
compiling key.c...
..HARDWAREKEYkey.h(22): warning: #1-D: last line of file ends without a newline
#endif
..HARDWAREKEYkey.c: 1 warning, 0 errors
compiling main.c...
..HARDWAREKEYkey.h(22): warning: #1-D: last line of file ends without a newline
#endif
main.c(32): warning: #111-D: statement is unreachable
return 0;
main.c(33): warning: #1-D: last line of file ends without a newline
}
main.c: 3 warnings, 0 errors
linking...
Program Size: Code=2072 RO-data=336 RW-data=32 ZI-data=1832
FromELF: creating hex file...
"..OBJkey.axf" - 0 Error(s), 4 Warning(s).
Build Time Elapsed: 00:00:01

///////////////////////////分界线////////////////////////////////

同样也是

最后一行缺少换行符!!!!!!!

以上是关于常见警告1的主要内容,如果未能解决你的问题,请参考以下文章

Quartus II 中 Verilog 常见警告/错误汇总

eclipse tomcat7.0 start 常见错误警告

尽管阅读了常见问题解答,ProGuard 仍因“警告:类 [*] 意外包含类 [*]”而失败

Xcode常见警告汇总(持续更新)

Xcode常见警告汇总(持续更新)

Keil软件常见的警告和错误含义。——Arvin