记一个程序编译错误: warning: missing sentinel in function call [-Wformat]
来源:互联网 发布:网络教育英语统考难么 编辑:程序博客网 时间:2024/06/05 00:33
今天写GTK+程序时,调用了一个可以接受任意个参数的函数,结果编译时报:
warining: warning: missing sentinel in function call [-Wformat]
上网查一下,原来可接受任意个参数的函数在调用时,必须给它传的最后一个参数是NULL。再看了一下所调用函数的说明,真的是这样。估计它是根据检测NULL来判断参数的个数。
记下来,也许别人也会遇到这个问题。方便别人搜索。
- 记一个程序编译错误: warning: missing sentinel in function call [-Wformat]
- 编译错误----warning: missing sentinel in function call [-Wformat]
- 执行 execl时发生warning: missing sentinel in function call [-Wformat]警告
- warning: missing sentinel in function call
- warning: missing sentinel in function call
- warning: missing sentinel in function call
- xcode编译警告:Missing sentinel in function call
- warning C4551: function call missing argument list 问题
- 求助:提示错误:warning C206: 'dispay': missing function-prototype
- missing sentinel in method dispatch
- PHP错误:Warning: preg_replace() [function.preg-replace]: Unknown modifier '[' in
- Fatal error: Call to a member function read() on a non-object in 错误解决方法(织梦程序报错)
- 编译错误“Too many arguments to function call....”
- Call JS function in Silverlight4
- PHP 方法错误 Warning: Missing argument 2 for user_shell(), called in E:\Www_local\bbs\user_sys.php
- 2、Swift出现Missing argument label 'XX:'in call 错误的解决方法
- 编译错误warning C4627
- CC2541 程序编译错误——Warning[w52]
- delphi 编码转换 unicode gbk big5
- EA中的正向工程
- JavaScript/jQuery、HTML、CSS 构建 Web IM 远程及时聊天通信程序
- iSCSI 的装置识别、存取、安全认证
- C++ 循环语句遇到break后,迭代部分执行与否的问题
- 记一个程序编译错误: warning: missing sentinel in function call [-Wformat]
- 使用php_screw对代码进行加密
- UVA705-Slash Maze
- OBIEE iBot的使用总结
- Java定时任务的实现
- 分享我的大学编程经历
- RAC打Patch遭遇PRKC-1002
- [MySQL] - MySQL连接字符串总结
- 7种js脚本分页代码