NevermindZZT / letter-shell

letter shell
MIT License
1.24k stars 447 forks source link

屏蔽MDK ACV6.19 shell_ext.c(320): -Wdeprecated-non-prototype警告 #155

Open cctv180 opened 1 year ago

cctv180 commented 1 year ago

最新版MDK538a 会报警告: 在所有版本的 C 中都弃用了将参数传递给没有原型的函数 shell_ext.c(320): warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]

在对应源码Misc Controls加入不建议加到工程的Misc Controls ‘-Wno-deprecated-non-prototype’ 或者在相应源码加入 ‘

if defined(clang)

pragma clang diagnostic ignored "-Wdeprecated-non-prototype"

elif IS_COMPILER_ARM_COMPILER_5

elif IS_COMPILER_GCC

endif

参考资料 ARM2D arm_2d_scene_x.h https://www.armbbs.cn/forum.php?mod=viewthread&tid=98670

NevermindZZT commented 1 year ago

感谢指出