去掉没用的参数的warning
2024-09-04 16:31:36
#define UNUSED(x) ((void)(x)) void fun(int noused_arg, int b)
{
UNUSED(noused_arg);
printf("%d\n", b);
}
上面那个函数因为有一个无用的参数,所以如果没有使用UNUSED那个宏,那么就会产生一个warning,使用后就没有那个warning。
最新文章
- LeetCode-66-Plus One
- GnuPG 1.4.15 发布,邮件加密工具
- Atitit 面向对象弊端与问题 坏处 缺点
- poj2524-Ubiquitous Religions
- Problem to create ";New Database Diagram"; in Microsoft SQL Server Management Studio for SQL Server 2012
- 解决Cannot modify header information - headers already sent by
- HTML5 LocalStorage 本地存储的用法
- duilib修复ActiveXUI控件bug,以支持flash透明动态背景
- iOS开发——极光推送
- Corel VideoStudio Pro X7(会声会影)
- 20.C++- ";&;&;";,";||";逻辑重载操作符的缺陷、";,";逗号重载操作符的分析
- java爬虫实现爬取百度风云榜Top10
- TestNg 10. 多线程测试-xml文件实现
- Chromium Embedded Framework (CEF)_3.2171.1979_v20170602_x86.tar.xz
- php上传图片预览,放大,裁剪
- poj2699
- 解决SecureCRT超时自动断开的问题
- linux下发送报警邮件(mailx)
- font-awesome 使用方法
- arcgis for silverlight 地图放大到某个点或者几何对象