From: Søren Sandmann Pedersen s...@redhat.com
Apparently GCC 4.5 still warns about value computed not used even
with __attribute__((unused)). Fix this by only doing the compile time
check on gcc 4.5.
Signed-off-by: Soren Sandmann s...@redhat.com
---
I need this patch to get qemu to compile
Am 03.10.2012 20:04, schrieb Søren Sandmann:
From: Søren Sandmann Pedersens...@redhat.com
Apparently GCC 4.5 still warns about value computed not used even
with __attribute__((unused)). Fix this by only doing the compile time
check on gcc 4.5.
Signed-off-by: Soren Sandmanns...@redhat.com
---
Stefan Weil s...@weilnetz.de writes:
I don't see any warnings with gcc Debian 4.4.5-8.
Could you please provide more information on your environment
and the warnings which you get?
Here is a macro which simplifies the version check:
#if QEMU_GNUC_PREREQ(4, 6)
Regards
Stefan Weil
With
Am 03.10.2012 21:49, schrieb Søren Sandmann:
Stefan Weils...@weilnetz.de writes:
I don't see any warnings with gcc Debian 4.4.5-8.
Could you please provide more information on your environment
and the warnings which you get?
Here is a macro which simplifies the version check:
#if
On 10/03/2012 11:04 AM, Søren Sandmann wrote:
From: Søren Sandmann Pedersen s...@redhat.com
Apparently GCC 4.5 still warns about value computed not used even
with __attribute__((unused)). Fix this by only doing the compile time
check on gcc 4.5.
Signed-off-by: Soren Sandmann
Richard Henderson r...@twiddle.net writes:
diff --git a/osdep.h b/osdep.h
index cb213e0..df89552 100644
--- a/osdep.h
+++ b/osdep.h
@@ -41,8 +41,9 @@ typedef signed int int_fast16_t;
#endif
/* Convert from a base type to a parent type, with compile time checking.
*/
Stefan Weil s...@weilnetz.de writes:
That's strange.
The lines which cause compiler errors look like this:
vfio_eoi(DO_UPCAST(VFIODevice, bars[bar-nr], bar));
There are more uses of DO_UPCAST without any compiler error:
VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev);