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

为当前最终发行版之前的所有版本提供支持
回复
nbdxkfq
帖子: 144
注册时间: 2007-01-10 23:56
送出感谢: 0
接收感谢: 0

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

#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
送出感谢: 0
接收感谢: 0
联系:

#2

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

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

回到 “老旧版本支持”