All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 00/15] GCC warning flags
@ 2010-09-10 20:58 Blue Swirl
  2010-09-19  9:52 ` Andreas Färber
  2010-09-20 11:28 ` Stefan Weil
  0 siblings, 2 replies; 5+ messages in thread
From: Blue Swirl @ 2010-09-10 20:58 UTC (permalink / raw)
  To: qemu-devel

I updated the descriptions and cleaned up 6/16.

Blue Swirl (15):
  Check for errors during BIOS or kernel load
  linux-user: fix socklen_t comparisons
  linux-user: fix types in a comparison
  linux-user: improve flatload error checking
  Introduce range.h
  Use range_covers_byte
  pxa2xx: remove useless checks
  blkdebug: fix enum comparison
  PPC: Suppress gcc warnings with -Wtype-limits
  MIPS: fix yield handling
  pxa2xx: fix SSSR TFN logic
  Use gcc warning flag -Wtype-limits
  Use a few more gcc warning flags
  Use gcc warning flag -Wempty-body
  Use gcc warning flag -Wnested-externs

 block/blkdebug.c        |    4 +--
 configure               |    5 +++-
 feature_to_c.sh         |    1 -
 gdbstub.c               |    1 -
 gdbstub.h               |    3 ++
 hw/acpi_piix4.c         |    1 +
 hw/mips_fulong2e.c      |    2 +-
 hw/msix.c               |    1 +
 hw/omap1.c              |   14 +++++++-----
 hw/omap_i2c.c           |    5 ++-
 hw/omap_mmc.c           |    5 ++-
 hw/pci.c                |    1 +
 hw/pci.h                |   29 ---------------------------
 hw/piix_pci.c           |    1 +
 hw/ppc405_boards.c      |   23 ++++++++++++---------
 hw/ppc_newworld.c       |    3 +-
 hw/ppc_prep.c           |    3 +-
 hw/pxa2xx.c             |   15 +++++++------
 hw/sm501.c              |    5 ++-
 hw/soc_dma.c            |    5 ++-
 hw/vhost.c              |    3 +-
 linux-user/flatload.c   |    3 +-
 linux-user/mmap.c       |    2 +-
 linux-user/syscall.c    |   20 ++++++++++++------
 range.h                 |   29 +++++++++++++++++++++++++++
 target-cris/mmu.c       |    2 +-
 target-mips/op_helper.c |    4 ++-
 target-ppc/op_helper.c  |   50 +++++++++++++++++++++++-----------------------
 28 files changed, 133 insertions(+), 107 deletions(-)
 create mode 100644 range.h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags
  2010-09-10 20:58 [Qemu-devel] [PATCH v3 00/15] GCC warning flags Blue Swirl
@ 2010-09-19  9:52 ` Andreas Färber
  2010-09-19 10:54   ` Blue Swirl
  2010-09-20 11:28 ` Stefan Weil
  1 sibling, 1 reply; 5+ messages in thread
From: Andreas Färber @ 2010-09-19  9:52 UTC (permalink / raw)
  To: Blue Swirl; +Cc: qemu-devel

Hi Blue,

Some of the warnings currently enabled are applicable only to C and  
Objective-C code, but gcc warns for C++:

cc1plus: warning: command line option "-Wold-style-definition" is  
valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wold-style-declaration" is  
valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wnested-externs" is valid for  
C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid  
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid  
for C/ObjC but not for C++

Any idea how to handle this configure/rules.mak-wise? Split  
QEMU_CFLAGS into QEMU_CPPFLAGS and QEMU_CFLAGS/QEMU_CXXFLAGS?

Regards,
Andreas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags
  2010-09-19  9:52 ` Andreas Färber
@ 2010-09-19 10:54   ` Blue Swirl
  0 siblings, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2010-09-19 10:54 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel

On Sun, Sep 19, 2010 at 9:52 AM, Andreas Färber <andreas.faerber@web.de> wrote:
> Hi Blue,
>
> Some of the warnings currently enabled are applicable only to C and
> Objective-C code, but gcc warns for C++:
>
> cc1plus: warning: command line option "-Wold-style-definition" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wold-style-declaration" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC
> but not for C++
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> C/ObjC but not for C++
> cc1plus: warning: command line option "-Wmissing-prototypes" is valid for
> C/ObjC but not for C++
>
> Any idea how to handle this configure/rules.mak-wise? Split QEMU_CFLAGS into
> QEMU_CPPFLAGS and QEMU_CFLAGS/QEMU_CXXFLAGS?

That could work, but why would we care about C++ at all? For example,
we use 'new' as variable name.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags
  2010-09-10 20:58 [Qemu-devel] [PATCH v3 00/15] GCC warning flags Blue Swirl
  2010-09-19  9:52 ` Andreas Färber
@ 2010-09-20 11:28 ` Stefan Weil
  2010-09-20 18:14   ` Blue Swirl
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Weil @ 2010-09-20 11:28 UTC (permalink / raw)
  To: Blue Swirl; +Cc: qemu-devel

Am 10.09.2010 22:58, schrieb Blue Swirl:
> I updated the descriptions and cleaned up 6/16.
>
> Blue Swirl (15):
> Check for errors during BIOS or kernel load
> linux-user: fix socklen_t comparisons
> linux-user: fix types in a comparison
> linux-user: improve flatload error checking
> Introduce range.h
> Use range_covers_byte
> pxa2xx: remove useless checks
> blkdebug: fix enum comparison
> PPC: Suppress gcc warnings with -Wtype-limits
> MIPS: fix yield handling
> pxa2xx: fix SSSR TFN logic
> Use gcc warning flag -Wtype-limits
> Use a few more gcc warning flags
> Use gcc warning flag -Wempty-body
> Use gcc warning flag -Wnested-externs
[snip]

-Wmissing-format-attribute is also a very useful warning flag.
I have patches which add the missing format attributes, so
this flag could be applied.

Some of these patches were already send to qemu-devel:
http://patchwork.ozlabs.org/patch/64643/
http://patchwork.ozlabs.org/patch/64644/
http://patchwork.ozlabs.org/patch/64487/
http://patchwork.ozlabs.org/patch/64488/

Although HACKING says that "patches to add the attribute would
be very much appreciated", these patches were still not applied
to QEMU master (not even reviewed).

Sending a complete set patch of patches is some work for me
(not because it is difficult, but because a lot of files
are concerned). Is there a maintainer willing to support
integration of my patches so that it does not take months
for review and commit?

Regards
Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH v3 00/15] GCC warning flags
  2010-09-20 11:28 ` Stefan Weil
@ 2010-09-20 18:14   ` Blue Swirl
  0 siblings, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2010-09-20 18:14 UTC (permalink / raw)
  To: Stefan Weil; +Cc: qemu-devel

On Mon, Sep 20, 2010 at 11:28 AM, Stefan Weil <weil@mail.berlios.de> wrote:
> Am 10.09.2010 22:58, schrieb Blue Swirl:
>>
>> I updated the descriptions and cleaned up 6/16.
>>
>> Blue Swirl (15):
>> Check for errors during BIOS or kernel load
>> linux-user: fix socklen_t comparisons
>> linux-user: fix types in a comparison
>> linux-user: improve flatload error checking
>> Introduce range.h
>> Use range_covers_byte
>> pxa2xx: remove useless checks
>> blkdebug: fix enum comparison
>> PPC: Suppress gcc warnings with -Wtype-limits
>> MIPS: fix yield handling
>> pxa2xx: fix SSSR TFN logic
>> Use gcc warning flag -Wtype-limits
>> Use a few more gcc warning flags
>> Use gcc warning flag -Wempty-body
>> Use gcc warning flag -Wnested-externs
>
> [snip]
>
> -Wmissing-format-attribute is also a very useful warning flag.
> I have patches which add the missing format attributes, so
> this flag could be applied.
>
> Some of these patches were already send to qemu-devel:
> http://patchwork.ozlabs.org/patch/64643/
> http://patchwork.ozlabs.org/patch/64644/
> http://patchwork.ozlabs.org/patch/64487/
> http://patchwork.ozlabs.org/patch/64488/
>
> Although HACKING says that "patches to add the attribute would
> be very much appreciated", these patches were still not applied
> to QEMU master (not even reviewed).
>
> Sending a complete set patch of patches is some work for me
> (not because it is difficult, but because a lot of files
> are concerned). Is there a maintainer willing to support
> integration of my patches so that it does not take months
> for review and commit?

I'll review the patches and commit if there are no objections.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-20 18:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 20:58 [Qemu-devel] [PATCH v3 00/15] GCC warning flags Blue Swirl
2010-09-19  9:52 ` Andreas Färber
2010-09-19 10:54   ` Blue Swirl
2010-09-20 11:28 ` Stefan Weil
2010-09-20 18:14   ` Blue Swirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.