社区
界面
帖子详情
请问这个是什么错 warning: passing arg 1 of `SetPara' from incompatible pointer type
xundeng
2003-10-19 03:45:43
如题
...全文
237
3
打赏
收藏
请问这个是什么错 warning: passing arg 1 of `SetPara' from incompatible pointer type
如题
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wuxfBrave
2003-10-20
打赏
举报
回复
函数SetPara的第一个参数与函数定义的指针类型不匹配
flyelf
2003-10-19
打赏
举报
回复
可以强制转换一下
孤必有邻
2003-10-19
打赏
举报
回复
警告而已,参数使用了不兼容的指针类型
warning
:
passing
arg
1 of `strlen' from
incompatible
pointer
type
是什么原因?
在DEV C编译环境下: 15 E:\document\c语言\zifuchuan.c [
Warning
]
passing
arg
1 of strlen' from
incompatible
pointer
type
[Linker error] undefined reference toWinMain@16’ 15 E:\document\c语言\zifuchuan.c ld r
关于问题
warning
:
passing
arg
2 of `bind' from
incompatible
pointer
type
理解
1.问题意思: bind的第二个参数指针绑定变量地址类型
错
误警告。 2.我的程序中是这样的 经过编译后,出现下面报警提示: 查看 /usr/include/sys目录下的socket.h解释如下: 显而易见,第二个参数四sockaddr的结构体类型,不是sockaddr_in的结构提类型。 预知sockaddr和sockaddr_in的区别,
关于
warning
:
passing
arg
ument x of xxx from
incompatible
pointer
type
这类警告出现的原因是:xxx函数的x参数作为指针类型参数,指针类型不相容。 解决办法: 在调用函数的参数前加上强制类型转换即可。 示例 源代码: void * signal_exit(void) { printf("Stop sniffer\n"); exit(0); } int main(void) { signal(SIGINT, signal_exit); return 0; } 报
错
: 原因分析: void(* signal(int sig,void(* func)(int)))(in
warning
:
passing
arg
ument 2 of 'request_irq' from
incompatible
pointer
type
导致的中断申请失败和
warning
:
passing
arg
ument 2 of 'request_irq' from
incompatible
pointer
type
导致的中断申请失败和 本文转自:http://blog.sina.com.cn/s/blog_7321be1101012gek.html 今天在些key的driver的时候。。。写完了编译出现一个warmming如下: warnin
warning
:
passing
arg
ument x of xxx from
incompatible
pointer
type
原因:指针类型不符
界面
15,979
社区成员
115,896
社区内容
发帖
与我相关
我的任务
界面
VC/MFC 界面
复制链接
扫一扫
分享
社区描述
VC/MFC 界面
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章