Re: git: Add -Werror to the kernel build.
--001636499e494151d4047acc8cd4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On Tue, Dec 15, 2009 at 2:52 PM, Sascha Wildner
<swildner@crater.dragonflybsd.org> wrote:
>
> commit 40ec0564adaa677a0dab5299bdd491a2245e94a0
> Author: Sascha Wildner <saw@online.de>
> Date: =A0 Tue Dec 15 15:52:07 2009 +0100
>
> =A0 =A0Add -Werror to the kernel build.
> [...]
I'd guess the following is probably related to this. Anyhow:
A user following the development changes of DragonFly, I noted that
building the kernel now errors out due to warnings of unused variables
- the ones in question being used only by debug code (KKASSERT, etc.),
and my kernel config disabling debug options.
The following files have these warnings:
sys/kern/kern_lock.c
sys/kern/kern_sig.c
sys/kern/lwkt_thread.c
sys/kern/vfs_cache.c
sys/kern/vfs_syscalls.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/hammer/hammer_object.c
sys/vfs/hammer/hammer_subs.c
sys/platform/pc32/i386/pmap.c
I don't know if these fit the preferred style of solving this, but
diffs to remove the warnings (mostly adding #ifdef INVARIANTS) to make
it build attached. At any rate, having a look at it will quickly show
where it's located.
--=20
Joel K. Pettersson
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="hammer_object.c.diff"
Content-Disposition: attachment; filename="hammer_object.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39c9t0k0
MTUyMGExNTIxCj4gI2lmZGVmIElOVkFSSUFOVFMKMTUyMWExNTIzCj4gI2VuZGlmCg==
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="hammer_subs.c.diff"
Content-Disposition: attachment; filename="hammer_subs.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39c9yjy1
MjQ3YTI0OAo+ICNpZmRlZiBJTlZBUklBTlRTCjI0OGEyNTAKPiAjZW5kaWYKMjc0YTI3Nwo+ICNp
ZmRlZiBJTlZBUklBTlRTCjI3NWEyNzkKPiAjZW5kaWYK
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="kern_lock.c.diff"
Content-Disposition: attachment; filename="kern_lock.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39ca5672
NDM1YTQzNgo+ICNpZiBkZWZpbmVkKFNJTVBMRUxPQ0tfREVCVUcpIHx8IGRlZmluZWQoSU5WQVJJ
QU5UUykKNDM2YTQzOAo+ICNlbmRpZgo0NzJhNDc1Cj4gI2lmIGRlZmluZWQoU0lNUExFTE9DS19E
RUJVRykgfHwgZGVmaW5lZChJTlZBUklBTlRTKQo0NzNhNDc3Cj4gI2VuZGlmCg==
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="kern_sig.c.diff"
Content-Disposition: attachment; filename="kern_sig.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39cab883
MTI1OGExMjU5Cj4gI2lmZGVmIElOVkFSSUFOVFMKMTI1OWExMjYxCj4gI2VuZGlmCg==
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="lwkt_thread.c.diff"
Content-Disposition: attachment; filename="lwkt_thread.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39cagc64
ODlhOTAKPiAjaWZkZWYgSU5WQVJJQU5UUwo5MWE5Mwo+ICNlbmRpZgo=
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="nfs_vnops.c.diff"
Content-Disposition: attachment; filename="nfs_vnops.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39camaz5
Mjk3MWEyOTcyCj4gI2lmZGVmIElOVkFSSUFOVFMKMjk3MmEyOTc0Cj4gI2VuZGlmCg==
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="vfs_cache.c.diff"
Content-Disposition: attachment; filename="vfs_cache.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39cb1gw6
NDk1YTQ5Ngo+ICNpZmRlZiBJTlZBUklBTlRTCjQ5NmE0OTgKPiAjZW5kaWYK
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="vfs_syscalls.c.diff"
Content-Disposition: attachment; filename="vfs_syscalls.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39cb6ka7
NTczZDU3Mgo8IAlzdHJ1Y3QgcHJvYyAqcCA9IHRkLT50ZF9wcm9jOwo1NzhjNTc3CjwgCUtLQVNT
RVJUKHApOwotLS0KPiAJS0tBU1NFUlQodGQtPnRkX3Byb2MpOwoxNzQwYTE3NDAKPiAjaWZkZWYg
SU5WQVJJQU5UUwoxNzQxYTE3NDIKPiAjZW5kaWYK
--001636499e494151d4047acc8cd4
Content-Type: application/octet-stream; name="pmap.c.diff"
Content-Disposition: attachment; filename="pmap.c.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g39cil9i8
NTk0YTU5NQo+ICNpZmRlZiBJTlZBUklBTlRTCjU5NWE1OTcKPiAjZW5kaWYK
--001636499e494151d4047acc8cd4--
討論串 (同標題文章)
完整討論串 (本文為第 2 之 4 篇):