All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] OpenBSD build (was: [PATCH v2] os-posix: Fix build on FreeBSD)
       [not found]   ` <4F8BCAC6.7000101@redhat.com>
@ 2012-05-05 17:08     ` Andreas Färber
  2012-05-06 11:05       ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Färber @ 2012-05-05 17:08 UTC (permalink / raw)
  To: Gerd Hoffmann, Brad Smith; +Cc: Blue Swirl, qemu-devel

Am 16.04.2012 09:31, schrieb Gerd Hoffmann:
> Don't have FreeBSD at hand.  /me has a OpenBSD virtual machine for build
> tests where this code compiles without issues.
[snip]

I've now set up an OpenBSD 5.1 VM and it compiles okay. However the
output is completely chatty due to redundant declarations in the OpenBSD
system headers.

When I remove -Wredundant-decls from QEMU_CFLAGS it is much better.

Any suggestion how to properly fix this in configure? The QEMU_CFLAGS
block is before the OS has been checked, and fwiw the flag has been
around since 2008 (e0e36fe91d2eadcec8159eb6d728c9dd7fc6cf44 / r5931).

Regards,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

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

* Re: [Qemu-devel] OpenBSD build (was: [PATCH v2] os-posix: Fix build on FreeBSD)
  2012-05-05 17:08     ` [Qemu-devel] OpenBSD build (was: [PATCH v2] os-posix: Fix build on FreeBSD) Andreas Färber
@ 2012-05-06 11:05       ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2012-05-06 11:05 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel, Gerd Hoffmann, Brad Smith

On Sat, May 5, 2012 at 5:08 PM, Andreas Färber <afaerber@suse.de> wrote:
> Am 16.04.2012 09:31, schrieb Gerd Hoffmann:
>> Don't have FreeBSD at hand.  /me has a OpenBSD virtual machine for build
>> tests where this code compiles without issues.
> [snip]
>
> I've now set up an OpenBSD 5.1 VM and it compiles okay. However the
> output is completely chatty due to redundant declarations in the OpenBSD
> system headers.
>
> When I remove -Wredundant-decls from QEMU_CFLAGS it is much better.
>
> Any suggestion how to properly fix this in configure? The QEMU_CFLAGS
> block is before the OS has been checked, and fwiw the flag has been
> around since 2008 (e0e36fe91d2eadcec8159eb6d728c9dd7fc6cf44 / r5931).

Can we have a check whether system headers produce warnings, something
like this:
$ cat headers.c
#include <sys/types.h>
#include <unistd.h>
$ gcc -Wredundant-decls -c headers.c
In file included from headers.c:2:
/usr/include/unistd.h:100: warning: redundant redeclaration of 'lseek'
/usr/include/sys/types.h:210: warning: previous declaration of 'lseek' was here
/usr/include/unistd.h:139: warning: redundant redeclaration of 'ftruncate'
/usr/include/sys/types.h:211: warning: previous declaration of
'ftruncate' was here
/usr/include/unistd.h:164: warning: redundant redeclaration of 'truncate'
/usr/include/sys/types.h:212: warning: previous declaration of
'truncate' was here

>
> Regards,
> Andreas
>
> --
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

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

end of thread, other threads:[~2012-05-06 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1334412060-1595-1-git-send-email-andreas.faerber@web.de>
     [not found] ` <4F899BBB.1050604@web.de>
     [not found]   ` <4F8BCAC6.7000101@redhat.com>
2012-05-05 17:08     ` [Qemu-devel] OpenBSD build (was: [PATCH v2] os-posix: Fix build on FreeBSD) Andreas Färber
2012-05-06 11:05       ` 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.