[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC, PATCH] Add -Wstrict-prototypes, maybe later -Wmissing

From: Blue Swirl
Subject: [Qemu-devel] [RFC, PATCH] Add -Wstrict-prototypes, maybe later -Wmissing-prototypes
Date: Fri, 8 Aug 2008 20:22:21 +0300


I made a series of patches that add -Wstrict-prototypes to the CFLAGS
and then -Wmissing-prototypes, both of which are enabled by Xen. I
also fixed most warnings generated -Wstrict-prototypes and some of
them for the -Wmissing-prototypes case.

Compiling with -Wstrict-prototypes produces only one extra warning. I
think this flag should be enabled.

But dyngen targets spew a lot of noise with -Wmissing-prototypes so
I'm not proposing to add that (or maybe that should be coupled with
CONFIG_DYNGEN_OP). This also meant that I did not care enough to fix
all warnings. The current warning fix should be safe to apply anyway.


Attachment: wstrict_prototypes.diff
Description: plain/text

Attachment: fix_wstrict_prototypes_warnings.diff
Description: plain/text

Attachment: wmissing_prototypes.diff
Description: plain/text

Attachment: fix_wmissing_prototypes_warnings.diff
Description: plain/text

reply via email to

[Prev in Thread] Current Thread [Next in Thread]