#define UNUSED(x) ((void)(x))

void fun(int noused_arg, int b)
{
  UNUSED(noused_arg);
  printf("%d\n", b);
}

上面那个函数因为有一个无用的参数,所以如果没有使用UNUSED那个宏,那么就会产生一个warning,使用后就没有那个warning。

最新文章

  1. LeetCode-66-Plus One
  2. GnuPG 1.4.15 发布,邮件加密工具
  3. Atitit 面向对象弊端与问题 坏处 缺点
  4. poj2524-Ubiquitous Religions
  5. Problem to create "New Database Diagram" in Microsoft SQL Server Management Studio for SQL Server 2012
  6. 解决Cannot modify header information - headers already sent by
  7. HTML5 LocalStorage 本地存储的用法
  8. duilib修复ActiveXUI控件bug,以支持flash透明动态背景
  9. iOS开发——极光推送
  10. Corel VideoStudio Pro X7(会声会影)
  11. 20.C++- "&&","||"逻辑重载操作符的缺陷、","逗号重载操作符的分析
  12. java爬虫实现爬取百度风云榜Top10
  13. TestNg 10. 多线程测试-xml文件实现
  14. Chromium Embedded Framework (CEF)_3.2171.1979_v20170602_x86.tar.xz
  15. php上传图片预览,放大,裁剪
  16. poj2699
  17. 解决SecureCRT超时自动断开的问题
  18. linux下发送报警邮件(mailx)
  19. font-awesome 使用方法
  20. arcgis for silverlight 地图放大到某个点或者几何对象

热门文章

  1. .netcore2.1 JS-SDK 从后台获取微信签名,实现自定义分享标题、描述、图片
  2. 【转载】Android App应用启动分析与优化
  3. 关于Java的多线程Runnable的个人理解(基础,不讲概念)
  4. MarkDown使用小技巧
  5. Linux达人计划(一)
  6. java给图片写正反字体,并将二维码写到图片上,代码实现
  7. 微信小程序支付功能讲解(2)
  8. misc-适合作为桌面
  9. 如何在Markdown格式下插入动图/gif
  10. AcWing 166. 数独