Fix and clean code which tests the gcc version
authorStefan Weil <weil@mail.berlios.de>
Fri, 16 Sep 2011 20:03:08 +0000 (22:03 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 23 Sep 2011 16:51:05 +0000 (11:51 -0500)
commitf0cfb4af10c28ab86f6363e077bfb2a38d8d372a
tree70b65a713f038ac2d7570f4642759f7aa4e7c87e
parent578535b875b8cdeaf6fb9d5948e7daa8bb3d1ac5
Fix and clean code which tests the gcc version

The code which tests whether gcc supports warn_unused_result was wrong.
Remove the wrong test from configure and replace it by code using
macro QEMU_GNUC_PREREQ in compiler.h.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
compiler.h
configure