git: Add -Werror to the kernel build.

Joel K. Pettersson joelkpettersson at gmail.com
Tue Dec 15 15:17:20 PST 2009


On Tue, Dec 15, 2009 at 2:52 PM, Sascha Wildner
<swildner at crater.dragonflybsd.org> wrote:
>
> commit 40ec0564adaa677a0dab5299bdd491a2245e94a0
> Author: Sascha Wildner <saw at online.de>
> Date:   Tue Dec 15 15:52:07 2009 +0100
>
>    Add -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.

-- 
 Joel K. Pettersson
Attachment:
hammer_object.c.diff
Description: Binary data
Attachment:
hammer_subs.c.diff
Description: Binary data
Attachment:
kern_lock.c.diff
Description: Binary data
Attachment:
kern_sig.c.diff
Description: Binary data
Attachment:
lwkt_thread.c.diff
Description: Binary data
Attachment:
nfs_vnops.c.diff
Description: Binary data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00009.bin
Type: application/octet-stream
Size: 45 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0108.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00008.bin
Type: application/octet-stream
Size: 144 bytes
Desc: "pmap.c.diff"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0109.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00007.bin
Type: application/octet-stream
Size: 45 bytes
Desc: "Attachment:"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0110.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00006.bin
Type: application/octet-stream
Size: 49 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0111.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00005.bin
Type: application/octet-stream
Size: 41 bytes
Desc: "vfs_syscalls.c.diff"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0112.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00004.bin
Type: application/octet-stream
Size: 49 bytes
Desc: "Attachment:"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0113.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00003.bin
Type: application/octet-stream
Size: 160 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0114.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00002.bin
Type: application/octet-stream
Size: 90 bytes
Desc: "vfs_cache.c.diff"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0115.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00001.bin
Type: application/octet-stream
Size: 49 bytes
Desc: "Attachment:"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20091215/ff6d69c5/attachment-0116.bin>


More information about the Submit mailing list