Open cctv180 opened 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]
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’ 或者在相应源码加入 ‘
’
参考资料 ARM2D arm_2d_scene_x.h https://www.armbbs.cn/forum.php?mod=viewthread&tid=98670
感谢指出
最新版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