diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-08-09 20:21:25 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-08-11 15:07:45 +0000 |
commit | c075a7239937e6ae45bcd3793c37b0168bfae93d (patch) | |
tree | 316d0dd2a807e904697bc640b5486432a11127af /linux-user/uaccess.c | |
parent | 8dc38a78d0f74e1561c1fe4d276150a1a8a12c4c (diff) | |
download | qemu-c075a7239937e6ae45bcd3793c37b0168bfae93d.zip qemu-c075a7239937e6ae45bcd3793c37b0168bfae93d.tar.gz qemu-c075a7239937e6ae45bcd3793c37b0168bfae93d.tar.bz2 |
configure: fix double check tests with Clang
Configuring with Clang compiler with -Werror would not work after
improved checks:
/tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates
to true [-Werror,-Wtautological-compare]
int main(void) { return preadv == preadv; }
/tmp/qemu-conf--25992-.c:13:26: error: self-comparison always
evaluates to true [-Werror,-Wtautological-compare]
return epoll_create1 == epoll_create1;
/tmp/qemu-conf--25992-.c:3:13: error: explicitly assigning a variable
of type 'char **' to itself [-Werror,-Wself-assign]
environ = environ;
Avoid the errors by adjusting the tests.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/uaccess.c')
0 files changed, 0 insertions, 0 deletions