Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cctv180 opened this issue May 1, 2023 · 1 comment
Open

Comments

@cctv180
Copy link
Contributor

cctv180 commented May 1, 2023

最新版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
Copy link
Owner

感谢指出

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants