请问我在内核编译过程中出现如下的警告,请问是怎么回事?对编译有什么影响,谢谢

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
nbdxkfq
帖子: 144
注册时间: 2007-01-10 23:56

请问我在内核编译过程中出现如下的警告,请问是怎么回事?对编译有什么影响,谢谢

#1

帖子 nbdxkfq » 2007-02-23 22:48

kernel/auditfilter.c:1605: warning: ‘state’ may be used uninitialized in this function
kernel/auditfilter.c: In function ‘audit_receive_filter’:
kernel/auditfilter.c:1170: warning: ‘ndw’ may be used uninitialized in this function
kernel/auditfilter.c:1170: warning: ‘ndp’ may be used uninitialized in this function
CC kernel/kprobes.o
fs/partitions/check.c: In function ‘add_partition’:
fs/partitions/check.c:389: warning: ignoring return value of ‘kobject_add’, declared with attribute warn_unused_result
fs/partitions/check.c:392: warning: ignoring return value of ‘sysfs_create_link’, declared with attribute warn_unused_result
CC fs/partitions/acorn.o
fs/partitions/acorn.c:31: warning: ‘adfs_partition’ defined but not used
fs/partitions/acorn.c:71: warning: ‘riscix_partition’ defined but not used
fs/partitions/acorn.c:121: warning: ‘linux_partition’ defined but not used
头像
booker
帖子: 116
注册时间: 2006-04-22 10:50
来自: Mito
联系:

#2

帖子 booker » 2007-02-25 12:39

这些警告没有任何影响,无非是说有些变量定义了而没有使用,或是有些变量使用之前没有初始化什么的。只要不出错,就没有问题。
Ubuntu only now on Dell XPS M1710
回复